<?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: How to get all User Groups of a Site programmatically using Java API? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288680#M241810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I tried with both, but currently trying to investigate from where it returns null pointer exception.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Nov 2016 12:55:34 GMT</pubDate>
    <dc:creator>mbel</dc:creator>
    <dc:date>2016-11-21T12:55:34Z</dc:date>
    <item>
      <title>How to get all User Groups of a Site programmatically using Java API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288670#M241800</link>
      <description>Hello,Is there any way of getting the list of all UserGroups and SubUserGroups of&amp;nbsp;a Site?Currently I see only method listMembers() which returns only the list of Users, not the groups.Thank you in advance.</description>
      <pubDate>Thu, 17 Nov 2016 14:18:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288670#M241800</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2016-11-17T14:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all User Groups of a Site programmatically using Java API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288671#M241801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try listMembers method and set argument collapseGroups=true.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 03:45:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288671#M241801</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2016-11-18T03:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all User Groups of a Site programmatically using Java API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288672#M241802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you want to get all the users and/or groups within sites you may also always use the AuthorityService API to list them. The SiteService API only provides the convenience operations that are needed e.g. to provide site management functionality in the UI. SiteService.getSiteGroup(shortName) gets you the Alfresco group that contains all the roles of the site, and transitively all the groups / users. You can use that in conjunction with AuthorityService.getContainedAuthorities(authorityType, name, immediate) to retrieve members.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Nov 2016 15:10:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288672#M241802</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-11-19T15:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all User Groups of a Site programmatically using Java API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288673#M241803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This again returns all users, but not the group of users.&lt;/P&gt;&lt;P&gt;I want to get for example -&amp;gt; &amp;nbsp;&amp;lt;GROUP_test, role&amp;gt; (which contain users: user1, user2) and after that get the List of that group which should return - user1, user2;&lt;/P&gt;&lt;P&gt;Instead I get -&amp;gt; &amp;lt;user1, role&amp;gt;, &amp;lt;user2, role&amp;gt; from the map which return that method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 09:14:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288673#M241803</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2016-11-21T09:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all User Groups of a Site programmatically using Java API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288674#M241804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way not specifying the authorityType? Otherwise I have to foreach them role by role, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 09:16:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288674#M241804</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2016-11-21T09:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all User Groups of a Site programmatically using Java API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288675#M241805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can simply provide authorityType as null and both groups AND users will be returned. The authorityType has nothing to do with the site role - these can be differentiated via SiteService.getSiteRoleGroup(shortName, roleName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 09:37:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288675#M241805</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-11-21T09:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all User Groups of a Site programmatically using Java API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288676#M241806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so for my case it should be =false and it works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 11:09:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288676#M241806</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2016-11-21T11:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all User Groups of a Site programmatically using Java API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288677#M241807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the method - &lt;STRONG&gt;authorityService.getContainedAuthorities&lt;/STRONG&gt;(&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;authorityType, name, immediate&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;Could you please tell me what exactly the paramether&amp;nbsp;&lt;STRONG&gt;name&amp;nbsp;(&lt;/STRONG&gt;the name of the containing authority) means.&lt;/P&gt;&lt;P&gt;The GroupName of a Site or ? As I receive nullpointer exception...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 11:41:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288677#M241807</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2016-11-21T11:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all User Groups of a Site programmatically using Java API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288678#M241808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Obviously it refers to the name of the authority of which to get the contained authorities. In this case it needs the full authority name as returned by the SiteService.getSiteRoleGroup(shortName, role) or SiteService.getSiteGroup(shortName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 12:42:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288678#M241808</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-11-21T12:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all User Groups of a Site programmatically using Java API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288679#M241809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In general I want to retrieve all Site's &lt;STRONG&gt;USERs&lt;/STRONG&gt; or&lt;STRONG&gt; User_GROUPS&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;for Example:&lt;/P&gt;&lt;P&gt;shortName of site - "&lt;STRONG&gt;example-site&lt;/STRONG&gt;":&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;user&lt;/STRONG&gt;: 'admin' - SiteManager&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;group&lt;/STRONG&gt;: 'Test_group' (which includes -&amp;gt; &lt;STRONG&gt;users&lt;/STRONG&gt;: 'abc', 'xyz' + &lt;STRONG&gt;subgroup&lt;/STRONG&gt;: 'test_subGroup'(&lt;STRONG&gt;user&lt;/STRONG&gt;: 'some') - SiteConsumer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So at the end I want to have in Collection:&lt;/P&gt;&lt;P&gt;&amp;lt;admin(user), &lt;SPAN&gt;SiteManager&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;Test_group(group),&amp;nbsp;SiteConsumer&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and somehow if the authority is a Group to get all data (subgroups and users) until the last user.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so currently the method -&amp;gt;&amp;nbsp;Map&amp;lt;String, String&amp;gt; listMembers = this.siteService&lt;STRONG&gt;.listMembers&lt;/STRONG&gt;(shortName, null, null, 0, false); is OK.&lt;/P&gt;&lt;P&gt;but I want to get the data as an object not as string,&lt;/P&gt;&lt;P&gt;so first, if it is an &lt;STRONG&gt;user&lt;/STRONG&gt;, I have to get all data for the user as an object&lt;/P&gt;&lt;P&gt;and second, if it is a &lt;STRONG&gt;group&lt;/STRONG&gt; to get the initial group object 1st and also all list of subgroups and/or users&lt;/P&gt;&lt;P&gt;and return every Group as an object(with user list including) and after that the data for the users as an object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked PersonService ,but it provides too basic information for an user. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be glad if you assist me with the methods which I should use and also the services.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 12:53:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288679#M241809</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2016-11-21T12:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all User Groups of a Site programmatically using Java API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288680#M241810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I tried with both, but currently trying to investigate from where it returns null pointer exception.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 12:55:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288680#M241810</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2016-11-21T12:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all User Groups of a Site programmatically using Java API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288681#M241811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the result of that listMembers is okay for your case but you have this kind of specific enrichment / object requirements, then I am afraid you have to do all of this aggregation yourself with custom code. The SiteService, AuthorityService, PersonService and NodeService are all you will need (NodeService is to get more extensive information about a person than available from PersonService via getProperties(personNodeRef)).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 13:49:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288681#M241811</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-11-21T13:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all User Groups of a Site programmatically using Java API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288682#M241812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I looped&amp;nbsp;all &lt;SPAN style="text-decoration: underline;"&gt;groups/subgroups&lt;/SPAN&gt; and users with the&amp;nbsp;&lt;STRONG style="color: #727174; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;authorityService.getContainedAuthorities&lt;/STRONG&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;(null&lt;/SPAN&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;, name, true&lt;/SPAN&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;) method.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;And managed to get all NodRefs of the objects and I used getProperties method as you said, however I want to get all information for exmaple for an User but I see only this information:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;{&lt;BR /&gt;&lt;SPAN&gt; "{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}email": "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:admin@alfresco.com" rel="nofollow noopener noreferrer"&gt;admin@alfresco.com&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}homeFolder": {&lt;/SPAN&gt;&lt;BR /&gt; "storeRef": {&lt;BR /&gt; "protocol": "workspace",&lt;BR /&gt; "identifier": "SpacesStore"&lt;BR /&gt; },&lt;BR /&gt; "id": "b2e97ee9-1154-411e-b9b7-a7d105049b0a"&lt;BR /&gt; },&lt;BR /&gt;&lt;SPAN&gt; "{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/system/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/system/1.0&lt;/A&gt;&lt;SPAN&gt;}cascadeTx": 38,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}lastName": "",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}organizationId": "",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/system/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/system/1.0&lt;/A&gt;&lt;SPAN&gt;}node-uuid": "e8d408b8-1e7b-41c2-8722-0f7327df6919",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}name": "e8d408b8-1e7b-41c2-8722-0f7327df6919",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}sizeCurrent": 0,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/system/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/system/1.0&lt;/A&gt;&lt;SPAN&gt;}store-protocol": "workspace",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/system/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/system/1.0&lt;/A&gt;&lt;SPAN&gt;}store-identifier": "SpacesStore",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/system/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/system/1.0&lt;/A&gt;&lt;SPAN&gt;}node-dbid": 32,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/system/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/system/1.0&lt;/A&gt;&lt;SPAN&gt;}locale": "en_US",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}userName": "admin",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}homeFolderProvider": "bootstrapHomeFolderProvider",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}owner": "admin",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/system/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/system/1.0&lt;/A&gt;&lt;SPAN&gt;}cascadeCRC": 3567086879,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}firstName": "Administrator"&lt;/SPAN&gt;&lt;BR /&gt; },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;For example I don't see the &lt;STRONG&gt;password&lt;/STRONG&gt; property and user&amp;nbsp;&lt;STRONG&gt;role&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Basically, if I want to collect all the properties and use them to create a person in&lt;STRONG&gt; another alfresco system&lt;/STRONG&gt;&lt;SPAN&gt;, the necessary information is in&amp;nbsp;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/&lt;/A&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;content&lt;/SPAN&gt;/&lt;/STRONG&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;1.0&amp;nbsp;, right ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Could you please tell me how to retrieve the full package of properties of an user?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Could you please also tell what exactly the property&amp;nbsp;&lt;SPAN&gt;&lt;SPAN&gt;"{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;STRONG&gt;name&lt;/STRONG&gt;": "e8d408b8-1e7b-41c2-8722-0f7327df6919", is ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 09:04:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288682#M241812</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2016-11-23T09:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all User Groups of a Site programmatically using Java API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288683#M241813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will never be able to access the user password for security reasons. Also, there is no such thing as a user role - the "role" is always implicit and derived from all the groups the user is a member of. What you get with getProperties is EVERYTHING you will ever be able to get for that user.&lt;/P&gt;&lt;P&gt;You can get the derived role of a user for a specific site by calling the SiteService.getMembersRole(shortName, authorityName) operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Almost every node in the Alfresco repository is requried to have a "name" property. For some types of nodes (person nodes) there is not necessarily a single, unique value that can be used for a name (or there are multiple constituent values with their own properties), so a generated UUID is used by default.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 09:36:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288683#M241813</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-11-23T09:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all User Groups of a Site programmatically using Java API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288684#M241814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, but&amp;nbsp;in order to make a copy of the same user I will need not only the role in the site but all its "&lt;EM&gt;roles&lt;/EM&gt;":&lt;/P&gt;&lt;P&gt;I managed to get the data from&amp;nbsp;authorityService.getAuthoritiesForUser("admin")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GROUP_ALFRESCO_ADMINISTRATORS&lt;BR /&gt;GROUP_ALFRESCO_MODEL_ADMINISTRATORS&lt;BR /&gt;GROUP_ALFRESCO_SEARCH_ADMINISTRATORS&lt;BR /&gt;GROUP_EMAIL_CONTRIBUTORS&lt;BR /&gt;GROUP_EVERYONE&lt;BR /&gt;GROUP_SITE_ADMINISTRATORS&lt;BR /&gt;GROUP_site_swsdp&lt;BR /&gt;GROUP_site_swsdp_SiteManager&lt;BR /&gt;ROLE_ADMINISTRATOR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I will need the hierarchy, so if I start with "admin" I want to get the authority above it and so on... until the root.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 11:18:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288684#M241814</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2016-11-23T11:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all User Groups of a Site programmatically using Java API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288685#M241815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I want to check the subAuthorities of the ROLE_ADMINISTRATOR or GROUP_EVERYONE:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt;"&gt;this&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;.authorityService.getContainedAuthorities(&lt;/SPAN&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt;"&gt;null&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #2a00ff;"&gt;"ROLE_ADMINISTRATOR"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; , &lt;/SPAN&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt;"&gt;true&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I receive the following exception which contradicts to the above:&lt;/P&gt;&lt;P&gt;org.springframework.extensions.webscripts.WebScriptException: 10240016 Wrapped Exception (with status template):&lt;/P&gt;&lt;P&gt;10240003 An authority was not found for ROLE_ADMINISTRATOR&lt;/P&gt;&lt;P&gt;10240005 An authority was not found for GROUP_EVERYONE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you any idea why I couldn't find all authorities assigned to a ROLE_ADMINISTRATOR or a&amp;nbsp;&lt;SPAN&gt;GROUP_EVERYONE&lt;/SPAN&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2016 08:22:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288685#M241815</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2016-11-25T08:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all User Groups of a Site programmatically using Java API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288686#M241816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ROLE_ADMINISTRATOR and GROUP_EVERYONE are "virtual" - they do not exist as actual data. Anything with the prefix "ROLE_" is always "virtual" and "membership" in GROUP_EVERYONE is always a given for any user. User that are member of GROUP_ALFRESCO_ADMINISTRATORS or otherwise set as administrator (e.g. via ldap.authentication.defaultAdministratorUserNames) have ROLE_ADMINISTRATOR.&lt;/P&gt;&lt;P&gt;Querying GROUP_EVERYONE is the same as listing ALL users.&lt;/P&gt;&lt;P&gt;Querying ROLE_ADMINISTRATOR is not possible in just one operation since many components (module authentication systems) may contribute to that role without persistent data to be queried.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2016 10:38:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288686#M241816</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-11-25T10:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all User Groups of a Site programmatically using Java API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288687#M241817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi af, while creating user it self can possible to assign into any site. if possible how and piece of code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 09:38:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-all-user-groups-of-a-site-programmatically-using-java/m-p/288687#M241817</guid>
      <dc:creator>nareshvy</dc:creator>
      <dc:date>2016-12-07T09:38:18Z</dc:date>
    </item>
  </channel>
</rss>

