Configure Element Level Security with XQuery
- Last Updated: May 20, 2026
- 1 minute read
- MarkLogic Server
- Version 12.0
- Documentation
To configure element level security, you would follow the same series of steps that you used for the earlier example. (See Example—Compartment Security.)
-
Set up roles.
-
Create users and assign roles.
-
Insert documents with permissions.
-
Add the query rolesets to the Security database.
-
Add protected paths for elements in documents, by inserting the protected paths into the Security database.