MarkLogic 10 Product Documentation
xdmp.documentRemovePermissions

xdmp.documentRemovePermissions(
   uri as String,
   permissions as Object[]
) as null

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 objects.

Example

declareUpdate();
xdmp.documentRemovePermissions(
   "/example.json", [
     xdmp.permission("development", "update"),
     xdmp.permission("qa", "read")
   ]);
Powered by MarkLogic Server | Terms of Use | Privacy Policy