
dls.documentGetPermissions( uri as String ) as Sequence
This function gets the permissions for the specified document from the point of view of the Library Services API.
| Parameters | |
|---|---|
| uri | The URI of the document. |
dls-user role is required to run this function,
or the privilege:http://marklogic.com/xdmp/privileges/dls-user
// Returns the permissions for the 'baz.xml' document.
const dls = require('/MarkLogic/dls');
dls.documentGetPermissions('/foo/bar/baz.xml');
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.