sem.graphAddPermissions( graph as sem.iri, permissions as Object[] ) as null
Add permissions to the graph specified. The user must have update or insert permissions on the graph.
This function is a built-in.
declareUpdate(); sem.graphAddPermissions(sem.iri("/my/graph/"), [xdmp.permission("my-role", "read"), xdmp.permission("my-role", "update")]);
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.