Loading TOC...

sem.graphRemovePermissions

sem.graphRemovePermissions(
   $graph as sem.iri,
   $permissions as Object[]
) as null

Summary

Remove permissions from the graph specified. The user must have update permissions on the graph.

This function is a built-in.

Parameters
$graph The graph IRI.
$permissions Security permission objects corresponding to the permissions for the document. If not supplied, the current user's default permissions are applied. The default value used for $permissions can be obtained by calling xdmp.defaultPermissions(). A document that is created by a non-admin user (that is, by any user who does not have the admin role) must have at least one update permission, otherwise the creation will throw an XDMP-MUSTHAVEUPDATE exception.

Example

declareUpdate();
var sem = require('/MarkLogic/semantics');
var perms = xdmp.defaultPermissions("graphs/myDemoGraph");

sem.graphRemovePermissions(sem.iri("MyGraph"), perms);

Comments

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