Generated
Role Mappings List
Manage role-to-permission mappings. Each role maps an IDP role to a set of Primebrick permissions.
Each row shows the IDP Role, the Organization, the Label Key, the Admin, the Permissions.
This role mapping is backed by the identity provider (Casdoor) — its identity fields are managed there.
Pages routes
/system/settings/roles— List, search and manage all role mappings. (this page)/system/settings/roles/create— Create a new role./system/settings/roles/{uuid}— View and edit an existing role.
What you can do here
How to create a new role mapping
- Click New in the toolbar.
- Fill in the form — required: role, org, label key, selected permissions.
- Click Save — the new role mapping is created.
How to edit a role mapping
- Open the row actions menu on the role mapping and click Edit.
- Update the fields — required: label key, selected permissions.
- Click Save — the changes to the role mapping are saved.
How to view the change history of a role mapping
- Open the row actions menu on the role mapping and click Audit history.
- The version history of the role mapping will appear on the right sheet panel.
Columns
| Column | Visible | Sortable | Filterable | Notes |
|---|---|---|---|---|
| IDP Role | yes | yes | yes | |
| UUID | no | yes | yes | |
| Organization | yes | yes | yes | the Casdoor organization this row belongs to |
| Label Key | yes | yes | yes | |
| Admin | yes | yes | yes | |
| Permissions | yes | no | no |
- The IDP Role column is shown by default and can be sorted and filtered.
- The UUID column is hidden by default and can be sorted and filtered.
- The Organization column is shown by default and can be sorted and filtered — the Casdoor organization this row belongs to.
- The Label Key column is shown by default and can be sorted and filtered.
- The Admin column is shown by default and can be sorted and filtered.
- The Permissions column is shown by default and cannot be sorted or filtered.
Related entities
- A Role Mapping is linked to Organizations through the Organization field — see Organizations.
- A Role Mapping is linked to Roles through the Permissions field — see Roles.
Actions
Row actions
| Action | Status | Permission | What it does | Require Step-Up Auth |
|---|---|---|---|---|
| create | ENABLED | role_mapping.create.single | Creates a new role mapping | no |
| update | ENABLED | role_mapping.update.single | Opens the role mapping for editing | no |
| delete | DISABLED | role_mapping.delete.single | Marks the role mapping as deleted but keeps it so it can be restored | no |
| restore | DISABLED | role_mapping.restore.single | Brings a soft-deleted role mapping back | no |
| purge | ENABLED | role_mapping.delete.single | Removes the role mapping forever | yes |
| audit history | ENABLED | role_mapping.read.audit | Shows the change history of the role mapping | no |
- Creating a new role mapping is available on this page — the create action opens the create form in the same tab and it requires the
role_mapping.create.singlepermission. - Editing a role mapping is available on this page — the row action opens the record in the same tab and it requires the
role_mapping.update.singlepermission. - Soft-deleting a role mapping is not available on this page — if enabled, it would require the
role_mapping.delete.singlepermission. - Restoring a soft-deleted role mapping is not available on this page — if enabled, it would require the
role_mapping.restore.singlepermission. - Permanently deleting a role mapping is available on this page — removes the role mapping forever and it requires the
role_mapping.delete.singlepermission, and step-up authentication is required. - Viewing the change history of a role mapping is available on this page — every role mapping keeps a full version history and it requires the
role_mapping.read.auditpermission.
Bulk actions
| Action | Status | Permission | What it does | Require Step-Up Auth |
|---|---|---|---|---|
| delete | DISABLED | role_mapping.delete.bulk | Marks the selected role mappings as deleted | no |
| restore | DISABLED | role_mapping.restore.bulk | Restores the selected role mappings | no |
| duplicate | DISABLED | role_mapping.duplicate.bulk | Duplicates the selected role mappings | no |
| export | DISABLED | role_mapping.export | Exports the list | no |
- Soft-deleting the selected role mappings is not available on this page — if enabled, it would require the
role_mapping.delete.bulkpermission. - Restoring the selected role mappings is not available on this page — if enabled, it would require the
role_mapping.restore.bulkpermission. - Duplicating the selected role mappings is not available on this page — if enabled, it would require the
role_mapping.duplicate.bulkpermission. - Exporting the list is not available on this page — if enabled, it would require the
role_mapping.exportpermission.
Doc references
Last modified on