<?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: Determine the Group of a user in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/determine-the-group-of-a-user/m-p/157915#M112059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you can get the authorities(groups) of a user like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;FacesContext context = FacesContext.getCurrentInstance();&lt;BR /&gt;ServiceRegistry serviceRegistry = Repository.getServiceRegistry(context);&lt;BR /&gt;AuthorityService as = serviceRegistry.getAuthorityService();&lt;BR /&gt;Set&amp;lt;String&amp;gt; auths = as.getAuthorities();&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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 Jul 2008 07:27:24 GMT</pubDate>
    <dc:creator>tfaudot</dc:creator>
    <dc:date>2008-07-16T07:27:24Z</dc:date>
    <item>
      <title>Determine the Group of a user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/determine-the-group-of-a-user/m-p/157914#M112058</link>
      <description>I want to know the group of a user. Suppose I logged in as a salesrep, in the LoginBean class I need to get the Group in which salesrep belongs…Is there any api to get that. Plz reply to this.</description>
      <pubDate>Mon, 14 Jul 2008 06:26:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/determine-the-group-of-a-user/m-p/157914#M112058</guid>
      <dc:creator>kshirod</dc:creator>
      <dc:date>2008-07-14T06:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Determine the Group of a user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/determine-the-group-of-a-user/m-p/157915#M112059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you can get the authorities(groups) of a user like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;FacesContext context = FacesContext.getCurrentInstance();&lt;BR /&gt;ServiceRegistry serviceRegistry = Repository.getServiceRegistry(context);&lt;BR /&gt;AuthorityService as = serviceRegistry.getAuthorityService();&lt;BR /&gt;Set&amp;lt;String&amp;gt; auths = as.getAuthorities();&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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 Jul 2008 07:27:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/determine-the-group-of-a-user/m-p/157915#M112059</guid>
      <dc:creator>tfaudot</dc:creator>
      <dc:date>2008-07-16T07:27:24Z</dc:date>
    </item>
  </channel>
</rss>

