Prerequisites - Create Databases, Roles, Users, and Privileges
To execute the scenarios discussed in this section, you need to perform the following preparation steps:
Using the Admin Interface, create databases
db1
anddb2
. 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
, anduser3
with rolesrole1
,role2
, androle3
correspondingly. 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
, androle3
as 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 |
---|---|---|
|
|
|
|
|
|
|
|
|