<?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 How to get all the roles(Custom or OOTB) from the User site in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-all-the-roles-custom-or-ootb-from-the-user-site/m-p/116053#M32181</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I want to get all roles whether it is custom or OOTB&amp;nbsp; present under the Users site for using it.&lt;/P&gt;&lt;P&gt;Since i have seen only a way to get role of a current user only. So whether it is possible to get all the roles from the site??&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 25 May 2020 05:38:23 GMT</pubDate>
    <dc:creator>P_Projects</dc:creator>
    <dc:date>2020-05-25T05:38:23Z</dc:date>
    <item>
      <title>How to get all the roles(Custom or OOTB) from the User site</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-all-the-roles-custom-or-ootb-from-the-user-site/m-p/116053#M32181</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I want to get all roles whether it is custom or OOTB&amp;nbsp; present under the Users site for using it.&lt;/P&gt;&lt;P&gt;Since i have seen only a way to get role of a current user only. So whether it is possible to get all the roles from the site??&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 05:38:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-all-the-roles-custom-or-ootb-from-the-user-site/m-p/116053#M32181</guid>
      <dc:creator>P_Projects</dc:creator>
      <dc:date>2020-05-25T05:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all the roles(Custom or OOTB) from the User site</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-all-the-roles-custom-or-ootb-from-the-user-site/m-p/116054#M32182</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think this piece of code may help you out for your requirement:-&lt;/P&gt;&lt;PRE&gt;public ScriptableHashMap&amp;lt;String, String&amp;gt; getSitePermissionGroups()
    {
        if (this.siteRoleGroups == null)
        {
            List&amp;lt;String&amp;gt; roles = this.siteService.getSiteRoles(
                    this.siteInfo.getShortName()
            );
            this.siteRoleGroups = new ScriptableHashMap&amp;lt;String, String&amp;gt;();
            for (String role : roles)
            {
                this.siteRoleGroups.put(
                        role, 
                        this.siteService.getSiteRoleGroup(this.siteInfo.getShortName(), role));
            }
        }
        return this.siteRoleGroups;
    }&lt;/PRE&gt;&lt;P&gt;See you will get Groups associated with all the roles present in your site.&lt;/P&gt;&lt;P&gt;Please apply and get back to me.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Piyush Patel&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 06:26:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-all-the-roles-custom-or-ootb-from-the-user-site/m-p/116054#M32182</guid>
      <dc:creator>piyush48</dc:creator>
      <dc:date>2020-05-25T06:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all the roles(Custom or OOTB) from the User site</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-all-the-roles-custom-or-ootb-from-the-user-site/m-p/116055#M32183</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you provide me the whole approach or code which i should add to the piece of code you provided to me.&lt;/P&gt;&lt;P&gt;Or please someone can you please help me out by providing whole steps to follow or where should i add this code on my SDK. Since i am new to Alfresco any help regarding this will be very helpful.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 06:51:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-all-the-roles-custom-or-ootb-from-the-user-site/m-p/116055#M32183</guid>
      <dc:creator>P_Projects</dc:creator>
      <dc:date>2020-05-25T06:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all the roles(Custom or OOTB) from the User site</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-all-the-roles-custom-or-ootb-from-the-user-site/m-p/116056#M32184</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Please someone could guide me through it though&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/80057"&gt;@piyush48&lt;/A&gt;&amp;nbsp; tried to help me but could someone please provide code and path where i should place it.&lt;/P&gt;&lt;P&gt;I am new in alfresco and have urgent requirement for this.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Piyush&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 13:21:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-all-the-roles-custom-or-ootb-from-the-user-site/m-p/116056#M32184</guid>
      <dc:creator>P_Projects</dc:creator>
      <dc:date>2020-05-26T13:21:01Z</dc:date>
    </item>
  </channel>
</rss>

