
dls.documentRemovePermissions( uri as String, permissions as Sequence ) as null
This function removes the specified permissions from the named document.
dls-user role is required to run
this function, or the privilege:http://marklogic.com/xdmp/privileges/dls-user
// Removes the specified permissions from the list of permissions for
// the 'baz.xml' document.
const dls = require('/MarkLogic/dls');
dls.documentRemovePermissions(
'/foo/bar/baz.xml',
[xdmp.permission('Developer', 'read'),
xdmp.permission('Developer', 'update')]);
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.