<?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 Acess to system group of a user in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/acess-to-system-group-of-a-user/m-p/301229#M254359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My objectif is find out if a user is a MANAGER in any site.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So it got to me that I can access it by system groups, because for every site there is 4 groups:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;site_[site_name]_SiteCollaborator&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;site_[site_name]_SiteConsumer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;site_[site_name]_SiteContributor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;site_[site_name]_SiteManager&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to know if the user is in any SiteManager group, something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if(user.properties["alfUserGroups"].indexOf("SITE_MANAGERS") != -1))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but this one works with normal groups &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone help me out please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's urgent &amp;gt;_&amp;lt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jun 2016 09:57:38 GMT</pubDate>
    <dc:creator>sue</dc:creator>
    <dc:date>2016-06-17T09:57:38Z</dc:date>
    <item>
      <title>Acess to system group of a user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/acess-to-system-group-of-a-user/m-p/301229#M254359</link>
      <description>Hello,My objectif is find out if a user is a MANAGER in any site.So it got to me that I can access it by system groups, because for every site there is 4 groups:site_[site_name]_SiteCollaboratorsite_[site_name]_SiteConsumersite_[site_name]_SiteContributorsite_[site_name]_SiteManagerI want to know if</description>
      <pubDate>Fri, 17 Jun 2016 09:57:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/acess-to-system-group-of-a-user/m-p/301229#M254359</guid>
      <dc:creator>sue</dc:creator>
      <dc:date>2016-06-17T09:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Acess to system group of a user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/acess-to-system-group-of-a-user/m-p/301230#M254360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;user.properties["alfUserGroups"] This wont give you system group. I dont think js API is available which gives system group as well. You can do with your custom java based script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OR as alternative use below OOB script to get all sites of user which also returns siteManager of that site. From there you can find if user is manager or not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/service/api/people/userName/sites" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/api/people/userName/sites&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OR if you have list of sites then get user membership/role using below one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/service/api/sites/iq/memberships/userName" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/api/sites/iq/memberships/userName&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 06:39:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/acess-to-system-group-of-a-user/m-p/301230#M254360</guid>
      <dc:creator>niketapatel</dc:creator>
      <dc:date>2016-06-23T06:39:14Z</dc:date>
    </item>
  </channel>
</rss>

