Loading TOC...

sec.pathRemovePermissions

sec.pathRemovePermissions(
   path as String,
   path-namespaces as element(sec.pathNamespace)[],
   permissions as element(sec.permission)[]
) as null

Summary

This function removes permissions for a protected path.

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

Required Privileges

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

Usage Notes

This function must be executed against the Security database.

Example


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

    sec.pathRemovePermissions("/a[b=1]/c",sec.securityPathNamespace('ml', 'marklogic.com'),
                      [xdmp.permission("dls-user", "read","element"), null, xdmp.permission("dsl-user", "update","element")])
      

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