<?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 do i check permission of a document? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-check-permission-of-a-document/m-p/321783#M8784</link>
    <description>&lt;P&gt;Document doc =documents.get(0);&lt;/P&gt;</description>
    <pubDate>Mon, 08 Oct 2012 14:29:00 GMT</pubDate>
    <dc:creator>tiger_</dc:creator>
    <dc:date>2012-10-08T14:29:00Z</dc:date>
    <item>
      <title>How do i check permission of a document?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-check-permission-of-a-document/m-p/321782#M8783</link>
      <description>&lt;P&gt;i want to check permission on a document(like folder) through pragmatically.how do i get all permission on a document like read,write.is there any API.&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2012 10:06:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-check-permission-of-a-document/m-p/321782#M8783</guid>
      <dc:creator>tiger_</dc:creator>
      <dc:date>2012-10-08T10:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do i check permission of a document?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-check-permission-of-a-document/m-p/321783#M8784</link>
      <description>&lt;P&gt;Document doc =documents.get(0);&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2012 14:29:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-check-permission-of-a-document/m-p/321783#M8784</guid>
      <dc:creator>tiger_</dc:creator>
      <dc:date>2012-10-08T14:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do i check permission of a document?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-check-permission-of-a-document/m-p/321784#M8785</link>
      <description>&lt;P&gt;Here is the REST API you can use to check Permission on a doc:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://localhost:8080/nuxeo/site/api/v1/path/&amp;lt;Folder_Path&amp;gt;/@acl" target="test_blank"&gt;http://localhost:8080/nuxeo/site/api/v1/path/&amp;lt;Folder_Path&amp;gt;/@acl&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;ex : &lt;A href="http://localhost:8080/nuxeo/site/api/v1/path/default-domain/workspaces/@acl" target="test_blank"&gt;http://localhost:8080/nuxeo/site/api/v1/path/default-domain/workspaces/@acl&lt;/A&gt; this gives me a json which contains permission info on Folder workspaces.&lt;/P&gt;
&lt;P&gt;for setting permission you need to use Nuxeo Automation Client. below is the code snippet for the same:
HttpAutomationClient autoclient = new HttpAutomationClient("http://localhost:8080/nuxeo/site/automation");
Session session = autoclient.getSession("user", "password");
DocumentService documentService = new DocumentService(session);
Document root = (Document) session.newRequest("Document.Fetch").set("value", /docPath/docName).execute();
documentService.setPermission(root, userName/groupName, "Read");&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2015 12:44:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-do-i-check-permission-of-a-document/m-p/321784#M8785</guid>
      <dc:creator>Anurag_Kumar</dc:creator>
      <dc:date>2015-11-11T12:44:40Z</dc:date>
    </item>
  </channel>
</rss>

