Skip to main content

Administrating MarkLogic Server

Checking and Setting Permissions for a Document in a Database

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:

  1. Click the Databases icon on the left tree menu.

  2. Locate the database for which you want to check or set permissions, either in the tree menu or in the Database Summary table.

  3. 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.

  4. Click the Permissions link for the selected database in the left tree menu. The Permissions Admin page appears.

  5. Enter the URI of the document or directory and click OK.

  6. 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.

  7. To commit your changes, click OK. To cancel the action, press Cancel.