Skip to main content

Administrating MarkLogic Server

Creating a URI Privilege

To create a URI privilege, follow these steps:

  1. Click the Security icon in the left tree menu.

  2. Click the URI Privileges icon.

  3. Click on the Create tab. The URI Privilege Configuration page appears.

  4. Enter the name of the URI privilege. Use a name that is descriptive of the base URI to be protected. For example, to restrict the creation of documents under a base URI reserved for the accounting group, you might use the name “accounting_files”.

  5. In the action field, enter the base URI to be protected. While the base URI does not have to map to an actual directory, it should follow the directory structure convention (for example, /myfiles/accounting_files). In this example, only the user with this URI privilege can create a file with the URI /myfiles/accounting_files/account1.xml.

  6. Under the roles section, select the roles that are allowed to create documents under the base URI.

  7. Click OK.

The URI privilege is created and added to the security database.