Endpoint for fetching acl

I have been looking for the nuxeo endpoint which grabs the response for displaying the permission on a document/workspace etc in the Permissions tab in UI. I saw here that the acls are fetched via a GET call with response as given here,:

{ "entity-type": "acls", "acl": [{ "name": "local", "ace": [{ "username": "jdoe", "permission": "ReadWrite", "granted": true }] }, { "name": "inherited", "ace": [{ "username": "Administrator", "permission": "Everything", "granted": true }, { "username": "members", "permission": "Read", "granted": true }] }] }

This response gives local as well as inherited permissions, which I think is parsed and displayed in the Permissions tab. Correct me if I am wrong.

I want to know the web endpoint which pull this data and want to see how nuxeo pull and consolidates the acls in the above form.

I also checked this link, which gives the exposed endpoints on nuxeo, but couldn't find related to acl. Please point me to the right direction.

0 votes

1 answers

63 views

ANSWER



Hello,

This data can be retrieved on any endpoint returning documents, such as /api/v1/id/DOC_ID, by adding the acls enricher to your request. You can find more information there.

There're also three fetch on this enricher to get more detailed data. You can request them by adding the http header fetch.acls=...,... to your request. These properties are: username, creator and extended for extended information.

Regards

2 votes



Thank you, Kevin!
03/01/2019