<?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 Web Service/CMIS to get members of a group in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/web-service-cmis-to-get-members-of-a-group/m-p/289754#M242884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have spent countless hours trying desperately to figure out how to list our all of the users within a group in Alfresco. I am trying to integrate our Alfresco environment into a new website I am building. I need to use web services of some description to do this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am hoping someone may be able to help. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far I have used CMIS (Java) to :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Connect to Alfresco&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Query for the repository names&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Connect to a repository&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Get a specific document ID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Print our the Principal names for that document (which I am led to believe are the group names)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I have, I believe, a list of groups in the form of strings. I guess I can also grab the group ID's too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IT IS NOW I AM GETTING DESPERATE!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I am correct in thinking that CMIS has taken me as far as it can? I don't think I can carry on digging into these groups using CMIS? Am I wrong - perhaps a CMIS query can do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my question is, what is my best approach now? I am on the latest version of Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have read about Web Scripts which I believe are blocks of logic, written in Java, that I upload to Alfresco. That could be problematic. I know there are Alfresco Web Services but I cannot seem to find an easy to follow, ground-up guide to working with them. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone advise on how best to achieve this query of user groups?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks for reading.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jan 2015 18:06:35 GMT</pubDate>
    <dc:creator>paulf</dc:creator>
    <dc:date>2015-01-29T18:06:35Z</dc:date>
    <item>
      <title>Web Service/CMIS to get members of a group</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-service-cmis-to-get-members-of-a-group/m-p/289754#M242884</link>
      <description>Hi all,I have spent countless hours trying desperately to figure out how to list our all of the users within a group in Alfresco. I am trying to integrate our Alfresco environment into a new website I am building. I need to use web services of some description to do this. I am hoping someone may be</description>
      <pubDate>Thu, 29 Jan 2015 18:06:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-service-cmis-to-get-members-of-a-group/m-p/289754#M242884</guid>
      <dc:creator>paulf</dc:creator>
      <dc:date>2015-01-29T18:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Web Service/CMIS to get members of a group</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-service-cmis-to-get-members-of-a-group/m-p/289755#M242885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a standard REST API that you can call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{alfresco-url}/api/groups/{Group-short-Name}/children?authorityType=Person&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 01:32:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-service-cmis-to-get-members-of-a-group/m-p/289755#M242885</guid>
      <dc:creator>rjohnson</dc:creator>
      <dc:date>2015-01-30T01:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Web Service/CMIS to get members of a group</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-service-cmis-to-get-members-of-a-group/m-p/289756#M242886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Don't think you can do it directly via CMIS.&amp;nbsp;&amp;nbsp;&amp;nbsp; (You may be able to do a query of the authorities via CMIS 1.1 though.&amp;nbsp;&amp;nbsp; That may be possible. )&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But there are web scripts available in the alfresco public API to CRUD groups as rjohnson points out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 10:50:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-service-cmis-to-get-members-of-a-group/m-p/289756#M242886</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2015-01-30T10:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Web Service/CMIS to get members of a group</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-service-cmis-to-get-members-of-a-group/m-p/289757#M242887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much for you help. I really appreciate it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just one follow up question if I may. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Although I didn't strictly need to, I went down the path of creating my own web script. Sort of a training process. I would like to confirm whether the output I am seeing is correct. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The web-script simply reads the group name passed in within the URL. The JS file then calls the getMembers() method (obviously in order to get the members of the group). It then adds the resulting array to the model as 'personnames'. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a JSON output file which &amp;lt;lists&amp;gt; through the generated model and writes the name of the group out. It does this using&amp;nbsp; "${person.name}".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is that the output - the 'username' - looks like a GUID e.g.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;person: [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;name: "2108408d-6c5f-40ef-b581-2d12ceedbdf7"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;name: "fb159b54-1c45-42a5-9837-76a480769d8d"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is this ID? More importantly, might you know how I can get the actual user name rather than this, what I assume is, a node reference?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope you can help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 12:23:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-service-cmis-to-get-members-of-a-group/m-p/289757#M242887</guid>
      <dc:creator>paulf</dc:creator>
      <dc:date>2015-01-30T12:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Web Service/CMIS to get members of a group</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-service-cmis-to-get-members-of-a-group/m-p/289758#M242888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;could you attach your java script and template file please.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 13:00:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-service-cmis-to-get-members-of-a-group/m-p/289758#M242888</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2015-01-30T13:00:44Z</dc:date>
    </item>
  </channel>
</rss>

