Prerequisites - Create Databases, Roles, Users, and Privileges
- Last Updated: May 20, 2026
- 1 minute read
- MarkLogic Server
- Version 12.0
- Documentation
To execute the scenarios discussed in this section, you need to perform the following preparation steps:
-
Using the Admin Interface, create databases
db1anddb2. For details on creating databases, see Creating a New Database in Administering MarkLogic Server. -
Using the Admin Interface, create roles
role1,role2, androle3. For details on creating roles, see Creating a Role in Administering MarkLogic Server. -
Using the Admin Interface, create users
user1,user2, anduser3with rolesrole1,role2, androle3correspondingly. For details on creating users and assigning roles to them, see Creating a User in Administering MarkLogic Server. -
Create and assign granular privileges to roles
role1,role2, androle3as described in Example 1, Example 2, and Example 3 correspondingly of the previous section Configure Granular Privileges via the XQuery API Security Module.
As the result, you will have the users with roles and privileges as described in the following table:
User |
Role |
Privilege |
|---|---|---|
|
|
|
|
|
|
|
|
|