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 Databases in the left tree menu. A list of databases appears.

  2. Click your target database.

  3. Under the database, click Permissions.

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

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

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