A More Complex Example
- Last Updated:April 10, 2025
- 1 minute read
- MarkLogic Server
- Version 11.0
- Documentation
To expand even more on the node-update example with added document permissions, you could have roles with both protected paths and document permissions.
Say you have a document with these nodes:
At the document level, there are these permissions:
At the element level, there are these permissions for protected paths:
In this example,
-
role1
cannot update (or override)<bar>
because at the element levelrole2
has<bar>
protected path permissions. -
role3
can override everything because at the document level it hasupdate
capability but can only read<baz>
which has no protected paths.