đģCreating and using Roles
For a demo example of following steps, here is the policy timestamp: 1675164531.823309003
User roles usage in Policies
An example of creating and using Roles in Policy
Switch to the Roles tab
Create 2 new roles called âExample role 1â and âExample role 2â
In the root container create 4 more âinterfaceContainerBlockâ container called âno_roleâ, âownerâ, ârole_1â and ârole_2â
Note: By default all containers would have âAny Roleâ set and thus they would be visible to all users (with all roles)
Change the âPermissionsâ properties in each container in the following way:
no_role: No Role
owner: Owner
role_1: Example role 1
role_2: Example role 2
This would result in the following visibility of containers:
The first container (called âno roleâ) would be visible only to new users which have no role assigned to them
The âownerâ container would be visible only to the Standard Registry which created (or imported) this policy
The ârole 1â container would be visible only to users with âExample role 1â
The ârole 2â container would be visible only to users with âExample role 2â
Add a âpolicyRolesBlockâ to the âno_roleâ container and name it âchoose_roleâ
Since this block is located inside the container âno_roleâ which has âNo roleâ permission setting it would only be visible to new users without an assigned role.
The âAvailable Rolesâ property allows to configure which roles would be available to users to chose from at this stage of the Policy workflow
Select âExample role 1â and âExample role 2â
Add âinformationBlockâ to other containers just to display results
Results:
New users would end up on the policy choice form upon entering the policy
After the selection of the role users would see only 1 container corresponding to their roles
The owner of the Policy (the Standard Registry user) upon executing the policy would skip the role selection form and would immediately end-up in the corresponding container
Last updated