dls:document-remove-permissions( $uri as xs:string, $permissions as item()* ) as empty-sequence()
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
xquery version "1.0-ml"; import module namespace dls = "http://marklogic.com/xdmp/dls" at "/MarkLogic/dls.xqy"; dls:document-remove-permissions( "/foo/bar/baz.xml", (xdmp:permission("Developer", "read"), xdmp:permission("Developer", "update"))) (: Removes the specified permissions from the list of permissions for the 'baz.xml' document. :)