Checking and Setting Permissions for a Document in a Database
- Last Updated: April 15, 2026
- 1 minute read
- MarkLogic Server
- Version 11.0
- Documentation
You can use the Admin Interface to check the permissions of a document or directory in a database. You can also use the xdmp:document-get-permissions and xdmp:document-set-permissions APIs to get and set permissions. For details on document permissions, see Securing MarkLogic Server.
In the Admin Interface, follow these steps to check and/or set permissions on a document or directory in a database:
-
Click Databases in the left tree menu. A list of databases appears.
-
Click your target database.
-
Under the database, click Permissions.
-
Enter the URI of the document or directory and click OK.
-
If you want to change the permissions, choose a role and capability from the drop-down lists. If you want to add more permissions, click the More Permissions button.
-
To commit your changes, click OK. To cancel the action, press Cancel.