Loading TOC...

MarkLogic Server 11.0 Product Documentation
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');
   

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.