cancel
Showing results for 
Search instead for 
Did you mean: 

from api content automation how to setACE on a document

vieville_
Champ in-the-making
Champ in-the-making

I would like to know the list of values allowed in the parameter "permission" of the Document.setACE function. In the same function what are the values allowed in the acl parameter ?

I tried permission=READ, acl=local, user=vieville and the ui displays "label.security.permission.rEAD" in the field "Permission accordée"

Thank you for your help

1 REPLY 1

Anurag_Kumar
Confirmed Champ
Confirmed Champ

Here is the snippet for setting permissions locally:

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”);

Getting started

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.