<?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 Returning all 'System' groups for a user in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/returning-all-system-groups-for-a-user/m-p/300761#M253891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Firstly, please accept my apologies as I seem to only be posting questions to this forum as opposed to helping others. I'm still new to Alfresco unfortunately. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted to ask if there is a way to query (either via webscript or Java API) for ALL groups (including system groups) that a user is a member of?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The key to this is that I need all of the system groups. By using getContainerGroups() I can get the user-defined groups that a user is a member of. The trouble is, I need the system groups too. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;E.G.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a site named "Site1". This site is created with system groups : GROUP_site_site1_SiteCollaborator, GROUP_site_site1_SiteConsumer and so on. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have added user 'jsmith' to the site1_SiteConsumer system group. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Given this user's name I need to be able to find out that 'jsmith' is a member of the "GROUP_site_site1_SiteConsumer" group. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;——&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NOTE: I noticed in another thread that someone asked how they can identify if the user in question is in a system group FOR ONE SITE ONLY. I cannot use this. I need to know what system groups a user is in across many different sites. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really hope someone can help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Mar 2015 14:49:35 GMT</pubDate>
    <dc:creator>paulf</dc:creator>
    <dc:date>2015-03-11T14:49:35Z</dc:date>
    <item>
      <title>Returning all 'System' groups for a user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/returning-all-system-groups-for-a-user/m-p/300761#M253891</link>
      <description>Hi everyone,Firstly, please accept my apologies as I seem to only be posting questions to this forum as opposed to helping others. I'm still new to Alfresco unfortunately. I wanted to ask if there is a way to query (either via webscript or Java API) for ALL groups (including system groups) that a us</description>
      <pubDate>Wed, 11 Mar 2015 14:49:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/returning-all-system-groups-for-a-user/m-p/300761#M253891</guid>
      <dc:creator>paulf</dc:creator>
      <dc:date>2015-03-11T14:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Returning all 'System' groups for a user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/returning-all-system-groups-for-a-user/m-p/300762#M253892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your requirement may be surprisingly tricky.&amp;nbsp; Since groups can contain other groups.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if you are looking for a java API the first port of call is the AuthorityService in particular methods like AuthorityService.getContainingAuthorities();&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 16:23:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/returning-all-system-groups-for-a-user/m-p/300762#M253892</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2015-03-11T16:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Returning all 'System' groups for a user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/returning-all-system-groups-for-a-user/m-p/300763#M253893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Many thanks for your response. It is very much appreciated. I will have a look into the AuthorityService class and see what I can find.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 07:39:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/returning-all-system-groups-for-a-user/m-p/300763#M253893</guid>
      <dc:creator>paulf</dc:creator>
      <dc:date>2015-03-12T07:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Returning all 'System' groups for a user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/returning-all-system-groups-for-a-user/m-p/300764#M253894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Following on from my original post above, I wondered if anyone knows how to go about using the getReaders() method mentioned on the following page:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/org/alfresco/service/cmr/security/PermissionService.html" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/resource/docs/java/org/alfresco/service/cmr/security/PermissionService.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my current solution I am using a combination of CMIS, Alfresco API and web scripts to do what I need - however, I am interested in this method. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess my question is, how do I get the ACL ID that I can use as a parameter with this getReaders() method?&amp;nbsp; Is this something I need to do in Java or is it something to implement in a web script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any examples of this method in action? I can't seem to find any. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your time&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 08:08:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/returning-all-system-groups-for-a-user/m-p/300764#M253894</guid>
      <dc:creator>paulf</dc:creator>
      <dc:date>2015-04-07T08:08:13Z</dc:date>
    </item>
  </channel>
</rss>

