sem:graph-add-permissions( $graph as sem:iri, $permissions as element(sec:permission)* ) as empty-sequence()
Add permissions to the graph specified. The user must have update or insert permissions on the graph.
This function is a built-in.
xquery version "1.0-ml"; sem:graph-add-permissions(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.