<?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 use &amp;quot;Document.setACE&amp;quot; with cURL to add multiple ACL ? (without deleting those that are available) in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-quot-document-setace-quot-with-curl-to-add-multiple/m-p/320012#M7013</link>
    <description>&lt;P&gt;The "overwrite : true" clause might be the cause of your problems&lt;/P&gt;</description>
    <pubDate>Tue, 18 Nov 2014 08:31:38 GMT</pubDate>
    <dc:creator>pibou_Bouvret</dc:creator>
    <dc:date>2014-11-18T08:31:38Z</dc:date>
    <item>
      <title>How to use "Document.setACE" with cURL to add multiple ACL ? (without deleting those that are available)</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-quot-document-setace-quot-with-curl-to-add-multiple/m-p/320011#M7012</link>
      <description>&lt;P&gt;-- Nuxeo 5.8 --&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I want to change the rights on the "MyFolder" folder:&lt;BR /&gt;
user : toto&lt;BR /&gt;
Group : g_titi&lt;BR /&gt;
but I can not change both&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;My commands:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;curl -X POST http: // website-dev:8080 / nuxeo / site / automation / Document.SetACE '-u admin:xxxxxxx -H' Content-Type: application / json + nxrequest ' -d {"input": "doc: / Driver / workspaces / MyFolder", "params": {"permission", "Write", "user": "g_titi", "acl", "local", "grant" "false", "overwrite": "true"}} '&lt;/P&gt;
&lt;P&gt;It's OK:&lt;BR /&gt;
[0] =&amp;gt; stdClass Object&lt;BR /&gt;
(&lt;BR /&gt;
[username] =&amp;gt; g_titi&lt;BR /&gt;
[permission] =&amp;gt; Write&lt;BR /&gt;
[Granted] =&amp;gt;&lt;BR /&gt;
)&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;curl -X POST http: // website-dev:8080 / nuxeo / site / automation / Document.SetACE '-u admin:xxxxxxx -H' Content-Type: application / json + nxrequest '-d {"input": "doc: / Driver / workspaces / MyFolder", "params": {"permission": "ReadWrite", "user": "toto", "acl", "local", "grant" "true", "overwrite": "true"}} '&lt;/P&gt;
&lt;P&gt;It's OK:&lt;BR /&gt;
[0] =&amp;gt; stdClass Object&lt;BR /&gt;
(&lt;BR /&gt;
[username] =&amp;gt; toto&lt;BR /&gt;
[permission] =&amp;gt; ReadWrite&lt;BR /&gt;
[Granted] =&amp;gt; 1&lt;BR /&gt;
)&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;But this last command has deleted the previous one !!!&lt;BR /&gt;
How to Obtain:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[0]&lt;/STRONG&gt; =&amp;gt; stdClass Object&lt;BR /&gt;
(&lt;BR /&gt;
[username] =&amp;gt; g_titi&lt;BR /&gt;
[permission] =&amp;gt; Write&lt;BR /&gt;
[Granted] =&amp;gt;&lt;BR /&gt;
)&lt;BR /&gt;
&lt;STRONG&gt;[1]&lt;/STRONG&gt; =&amp;gt; stdClass Object&lt;BR /&gt;
(&lt;BR /&gt;
[username] =&amp;gt; toto&lt;BR /&gt;
[permission] =&amp;gt; ReadWrite&lt;BR /&gt;
[Granted] =&amp;gt; 1&lt;BR /&gt;
)&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;thank you very much&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2014 15:19:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-quot-document-setace-quot-with-curl-to-add-multiple/m-p/320011#M7012</guid>
      <dc:creator>paglop_</dc:creator>
      <dc:date>2014-11-17T15:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "Document.setACE" with cURL to add multiple ACL ? (without deleting those that are available)</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-quot-document-setace-quot-with-curl-to-add-multiple/m-p/320012#M7013</link>
      <description>&lt;P&gt;The "overwrite : true" clause might be the cause of your problems&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2014 08:31:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-quot-document-setace-quot-with-curl-to-add-multiple/m-p/320012#M7013</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2014-11-18T08:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "Document.setACE" with cURL to add multiple ACL ? (without deleting those that are available)</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-quot-document-setace-quot-with-curl-to-add-multiple/m-p/320013#M7014</link>
      <description>&lt;P&gt;Of course !
It's ok, thank you very much.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2014 09:12:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-quot-document-setace-quot-with-curl-to-add-multiple/m-p/320013#M7014</guid>
      <dc:creator>paglop_</dc:creator>
      <dc:date>2014-11-18T09:12:33Z</dc:date>
    </item>
  </channel>
</rss>

