MarkLogic 12 EA 1 Product Documentation
xdmp:document-remove-permissions

xdmp:document-remove-permissions(
   $uri as xs:string,
   $permissions as element(sec:permission)*
) as empty-sequence()

Summary

Removes the given permissions from the named document or directory. The user must have update permissions on the document or directory.

Parameters
uri The document URI.
$permissions Permission elements.

Example

  xdmp:document-remove-permissions(
    "/example.xml",
    (xdmp:permission("development", "update"),
     xdmp:permission("qa", "read")))
Powered by MarkLogic Server | Terms of Use | Privacy Policy