Skip to main content

Administrating MarkLogic Server

Creating a URI Privilege

To create a URI privilege, follow these steps:

  1. Click Security in the left tree menu. A list of security items appears.

  2. Click URI Privileges.

  3. Click on the Create tab.

  4. In the Privilege Name field, 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 Uri field, enter the base URI to protect. 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. In 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.