<?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 to grant access to group to folder using REST API in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-grant-access-to-group-to-folder-using-rest-api/m-p/324197#M11198</link>
    <description>&lt;P&gt;The ACL endpoint should give you informations ... about the ACLs of a document&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;/id/{docId}/@acl : View the ACL of a document given its id&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And the Document.SetACE operation can be used to change those ACLSs.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Mar 2015 16:36:37 GMT</pubDate>
    <dc:creator>pibou_Bouvret</dc:creator>
    <dc:date>2015-03-23T16:36:37Z</dc:date>
    <item>
      <title>How to grant access to group to folder using REST API</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-grant-access-to-group-to-folder-using-rest-api/m-p/324196#M11197</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I cannot find in the playground nor in the endpoints a way to add or remove a group from a folder/workspace ACL using the REST API&lt;/P&gt;
&lt;P&gt;what's the endpoint to add a group to a single folder?&lt;/P&gt;
&lt;P&gt;I can change the folder definition but that applies to every folder, instead I'd want a different group having access to it's own tree of documents all managed programatically.&lt;/P&gt;
&lt;P&gt;when I try adding a local permission to the file using the management interface and get the file using the ID api, there is no local permission node into the document, so I can't edit it trough that particular endpoint, i.e.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;GET nuxeo/site/api/v1/id/99762585-53b7-4276-9a1c-bffeaca7d448
{"entity-type":"document","repository":"default","uid":"99762585-53b7-4276-9a1c-bffeaca7d448",
 "path":"/default-domain/workspaces/data","type":"Workspace","state":"project","parentRef":
 "7edb2187-348a-49c2-9ecf-1b767c856cc9","versionLabel":"","isCheckedOut":true,"title":"data",
 "lastModified":"2015-02-24T15:00:28.00Z","facets":
["SuperSpace","Folderish"],"changeToken":"1424790028000","contextParameters":{}}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Feb 2015 15:38:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-grant-access-to-group-to-folder-using-rest-api/m-p/324196#M11197</guid>
      <dc:creator>Lorenzo_</dc:creator>
      <dc:date>2015-02-24T15:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to grant access to group to folder using REST API</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-grant-access-to-group-to-folder-using-rest-api/m-p/324197#M11198</link>
      <description>&lt;P&gt;The ACL endpoint should give you informations ... about the ACLs of a document&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;/id/{docId}/@acl : View the ACL of a document given its id&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And the Document.SetACE operation can be used to change those ACLSs.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2015 16:36:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-grant-access-to-group-to-folder-using-rest-api/m-p/324197#M11198</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2015-03-23T16:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to grant access to group to folder using REST API</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-grant-access-to-group-to-folder-using-rest-api/m-p/324198#M11199</link>
      <description>&lt;P&gt;This may solve your problem:&lt;/P&gt;
&lt;P&gt;HttpAutomationClient autoclient = new HttpAutomationClient(“http://localhost:8080/nuxeo/site/automation”);&lt;/P&gt;
&lt;P&gt;Session session = autoclient.getSession(“user”, “password”);&lt;/P&gt;
&lt;P&gt;DocumentService documentService = new DocumentService(session);&lt;/P&gt;
&lt;P&gt;Document root = (Document) session.newRequest(“Document.Fetch”).set(“value”, /docPath).execute();&lt;/P&gt;
&lt;P&gt;documentService.setPermission(root, userName/groupName, “Read”);&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2015 12:51:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-grant-access-to-group-to-folder-using-rest-api/m-p/324198#M11199</guid>
      <dc:creator>Anurag_Kumar</dc:creator>
      <dc:date>2015-11-11T12:51:15Z</dc:date>
    </item>
  </channel>
</rss>

