<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [Alfresco 4.2d] Check if user in a group to show/hide items in header in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-4-2d-check-if-user-in-a-group-to-show-hide-items-in/m-p/297697#M250827</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I dont think any API is available in Share/Surf to check if user is in particular group.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Surf does have user object and all possible properties are listed here - &lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.1/topic/com.alfresco.enterprise.doc/references/APISurf-user.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.1/topic/com.alfresco.enterprise.doc/references/APISurf-user.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you can do as described in that forum using repository webscript&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And header links you can hide/show based on configuration too by adding condition in link as below in share-config-custom.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;item type="link" id="people" condition="user.isAdmin" &amp;gt;/people-finder&amp;lt;/item&amp;gt; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Oct 2013 15:58:46 GMT</pubDate>
    <dc:creator>niketapatel</dc:creator>
    <dc:date>2013-10-16T15:58:46Z</dc:date>
    <item>
      <title>[Alfresco 4.2d] Check if user in a group to show/hide items in header</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-4-2d-check-if-user-in-a-group-to-show-hide-items-in/m-p/297696#M250826</link>
      <description>What is the best way to check if one user is in a certain group and depending on that to display/hide items from the share header? (Alfresco 4.2d)Is there a better solution besides:https://forums.alfresco.com/forum/developer-discussions/alfresco-share-development/check-if-user-groupsolved-07122010-1</description>
      <pubDate>Wed, 16 Oct 2013 13:43:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-4-2d-check-if-user-in-a-group-to-show-hide-items-in/m-p/297696#M250826</guid>
      <dc:creator>tetsubo</dc:creator>
      <dc:date>2013-10-16T13:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: [Alfresco 4.2d] Check if user in a group to show/hide items in header</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-4-2d-check-if-user-in-a-group-to-show-hide-items-in/m-p/297697#M250827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I dont think any API is available in Share/Surf to check if user is in particular group.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Surf does have user object and all possible properties are listed here - &lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.1/topic/com.alfresco.enterprise.doc/references/APISurf-user.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.1/topic/com.alfresco.enterprise.doc/references/APISurf-user.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you can do as described in that forum using repository webscript&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And header links you can hide/show based on configuration too by adding condition in link as below in share-config-custom.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;item type="link" id="people" condition="user.isAdmin" &amp;gt;/people-finder&amp;lt;/item&amp;gt; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 15:58:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-4-2d-check-if-user-in-a-group-to-show-hide-items-in/m-p/297697#M250827</guid>
      <dc:creator>niketapatel</dc:creator>
      <dc:date>2013-10-16T15:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: [Alfresco 4.2d] Check if user in a group to show/hide items in header</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-4-2d-check-if-user-in-a-group-to-show-hide-items-in/m-p/297698#M250828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thank you for the response, niketapatel, I did the group check with the repo webscript. Btw. I am using the alfresco 4.2d new header, so share-config-custom.xml is not working for me (legacy mode disabled).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 09:18:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-4-2d-check-if-user-in-a-group-to-show-hide-items-in/m-p/297698#M250828</guid>
      <dc:creator>tetsubo</dc:creator>
      <dc:date>2013-10-21T09:18:00Z</dc:date>
    </item>
  </channel>
</rss>

