<?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 we get the Group of a user in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-we-get-the-group-of-a-user/m-p/157947#M112088</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I understand well, you can take a look at the AuthorityService. You can use the method getAuthorities() to retrieve all authorities for the user or getAuthoritiesForUser(String userName). After that, filter the names that start with the GROUP_ prefix.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In case you want to take a look at the Javadoc:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/security/AuthorityService.html" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/security/AuthorityService.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jul 2008 09:22:40 GMT</pubDate>
    <dc:creator>robertito</dc:creator>
    <dc:date>2008-07-29T09:22:40Z</dc:date>
    <item>
      <title>How we get the Group of a user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-we-get-the-group-of-a-user/m-p/157946#M112087</link>
      <description>In the LoginBean class we have this.username to get the logged in user.I want to know the GROUP of the logged in user in that class.Is there any api to get the Groupname…Plz reply …Do&amp;nbsp; you want more clarification.</description>
      <pubDate>Mon, 14 Jul 2008 06:42:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-we-get-the-group-of-a-user/m-p/157946#M112087</guid>
      <dc:creator>kshirod</dc:creator>
      <dc:date>2008-07-14T06:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: How we get the Group of a user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-we-get-the-group-of-a-user/m-p/157947#M112088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I understand well, you can take a look at the AuthorityService. You can use the method getAuthorities() to retrieve all authorities for the user or getAuthoritiesForUser(String userName). After that, filter the names that start with the GROUP_ prefix.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In case you want to take a look at the Javadoc:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/security/AuthorityService.html" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/security/AuthorityService.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 09:22:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-we-get-the-group-of-a-user/m-p/157947#M112088</guid>
      <dc:creator>robertito</dc:creator>
      <dc:date>2008-07-29T09:22:40Z</dc:date>
    </item>
  </channel>
</rss>

