'Role assignment rules' are Zanata's way of dynamically assigning security roles and even Project access to users.
To configure Role Assignment Rules, admin users must go to the Administration section and click 'Role assignment rules' button.
Overview
-
Policy Name: This is the type of authentication system that a user logs in with (Open Id, Internal Authentication, etc).
-
Role To Assign: This is the Role that will be assigned to the user upon login, if the Policy name and Identity pattern match.
-
Identity Pattern: This is a Regular expression that will be matched against the user's authenticated identity (most of the time this is the user name, but for Open Id, it's the Open Id itself).
How it works
- User Logs in.
- Authentication Policy is checked. If the user logged in using the authentication policy declared in the rule, continue to the next step. Otherwise, this rule is not applied.
- Identity Patter is checked. If the user's name (or Open Id) matches the pattern described in the rule, continue to the next step. Otherwise, this rule is not applied.
- The user is assigned the role stated in the Rule. Process subsequent rules.
Adding new rules
- Navigate to 'Role assignment rules' page.
- Click on
More Action
menu on the top right panel. - Select
New Rule
. - Fill in the fields and click
Save
.
Deleting rules
- Navigate to 'Role assignment rules' page.
- Locate the rule you wish to delete, click on
Options
menu in front of the row. - Click
Delete
to remove the rule.
Restricting Project Access to User Roles
To complement the dynamic role assignment described above, Zanata can now restrict project access by roles. To restrict project access,
- Go to project settings page.
- Click on
Permission
tab. - Check
Restrict access to certain user roles
and select roles that you wish to allow access to your project. - Any role restrictions will now be seen on the project's page and only users belonging to that role will be able to work on the project.