xdmp.documentSetPermissions( $uri as String, $permissions as Object ) as null
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
The user must have update permissions on the document or directory.
|$uri||The document URI.|
declareUpdate(); xdmp.documentSetPermissions( "/example.json", [ xdmp.permission("development", "update"), xdmp.permission("qa", "read") ]);