Checking and Setting Permissions for a Document in a Database
- Last Updated: April 14, 2026
- 1 minute read
- MarkLogic Server
- Version 10.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 the Databases icon on the left tree menu.
-
Locate the database for which you want to check or set permissions, either in the tree menu or in the Database Summary table.
-
Click the name of the database where the document to which you want to check or set permissions is stored. The Database Configuration page appears.
-
Click the Permissions link for the selected database in the left tree menu. The Permissions Admin page appears.
-
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.