๐ปCreating and using Roles
Last updated
Last updated
For a demo example of following steps, here is the policy timestamp: 1675164531.823309003
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
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