11-17-2014 10:19 AM
-- Nuxeo 5.8 --
Hi,
I want to change the rights on the "MyFolder" folder:
user : toto
Group : g_titi
but I can not change both
My commands:
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"}} '
It's OK:
[0] => stdClass Object
(
[username] => g_titi
[permission] => Write
[Granted] =>
)
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"}} '
It's OK:
[0] => stdClass Object
(
[username] => toto
[permission] => ReadWrite
[Granted] => 1
)
But this last command has deleted the previous one !!!
How to Obtain:
[0] => stdClass Object
(
[username] => g_titi
[permission] => Write
[Granted] =>
)
[1] => stdClass Object
(
[username] => toto
[permission] => ReadWrite
[Granted] => 1
)
thank you very much
11-18-2014 03:31 AM
The "overwrite : true" clause might be the cause of your problems
11-18-2014 04:12 AM
Of course ! It's ok, thank you very much.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.