dls.documentGetPermissions

dls.documentGetPermissions(
   uri as String
) as Sequence

Summary

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.

Required Privileges

The dls-user role is required to run this function, or the privilege:
http://marklogic.com/xdmp/privileges/dls-user

Example

// Returns the permissions for the 'baz.xml' document.

const dls = require('/MarkLogic/dls');

dls.documentGetPermissions('/foo/bar/baz.xml');
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy