Loading TOC...

MarkLogic 12 EA 1 Product Documentation
xdmp.documentAddPermissions

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

Summary

Adds the given permissions to the given document or directory. The user must have update or insert permissions on the document.

Parameters
uri The document URI.
permissions Permission objects.

Example

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

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.