Loading TOC...

XDMP-MUSTHAVEUPDATE

Message Text

Document must have at least one update permission. Assigned permissions: variable1

Cause

When creating a document as a user without the admin role, the document must include at least one update permission. You can specify permissions explicitly in your update built-in call (for example, xdmp:document-insert), or with the set of default permissions for the user performing the update operation.

Response

When loading a document, ensure the named role has update permissions. Documents created by non-admin users must be created with at least one update permission. If the document has no permissions, then only users with the admin role will be able to update or delete the document.

You can create the permissions in several ways, including:

Passing them as option parameters to functions such as xdmp:document-load and xdmp:document-insert.Setting default permissions on a user or role.Using the permissions APIs, such as xdmp:document-add-permissions or xdmp:document-set-permissions.

For more information, see the Understanding and Using Security Guide or the Application Developer's Guide.

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