Loading TOC...

sec.pathGetPermissions

sec.pathGetPermissions(
   path as String,
   path-namespaces as element(sec.pathNamespace)[]
) as Sequence

Summary

This function gets a list of permissions for the path named.

Parameters
path The protected path.
path-namespaces The namespace(s) for the path.

Required Privileges

http://marklogic.com/xdmp/privileges/path-get-permissions

Usage Notes

This function must be executed against the Security database.

Example


     // execute this against the Security database
    const sec = require('/MarkLogic/security');

    sec.pathGetPermissions("/root/bar[@baz=1]", sec.securityPathNamespace('ml', 'marklogic.com'));
      

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