Loading TOC...

xdmp.documentSetPermissions

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

Summary

Sets the permissions on the named document (or directory) to the given permissions, replacing any permissions previously set on the document (or directory). To preserve any existing permissions, use . xdmp.documentAddPermissions. The user must have update permissions on the document or directory.

Parameters
$uri The document URI.
$permissions Permission objects.

Example

declareUpdate();
xdmp.documentSetPermissions(
  "/example.json", [
    xdmp.permission("development", "update"),
    xdmp.permission("qa", "read")
    ]);

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy