Roles & permissions (admin UI)
Browse, filter, create, and delete roles when your organization allows it.
Purpose
Administrators manage IAM roles from Setting → Roles & Permission (/dashboard/setting/roles-permission). Data is loaded with api.OrgRoles.get; deletes call api.OrgRoles.delete.
Who uses it
Security administrators and tenant super-admins adjusting role catalogs.
Prerequisites
- Route guard expects role view/list permissions (
view_role,list_role). - Creating or editing routes (
/roles-permission/new,/roles-permission/$roleId) require matching create/update permissions inside the forms (CanIgates individual controls).
Navigation
- Sidebar → Setting → Roles & Permission.
- Use search and filters (scope, status).
- Select New when available to open
/dashboard/setting/roles-permission/new. - Open an existing role row to edit at
/dashboard/setting/roles-permission/$roleId.
Expected results
- Table lists roles returned by the API.
- Successful delete refreshes the grid via React Query invalidation.
Troubleshooting
- Empty list: Confirm filters or insufficient roles in the tenant — contact support if configuration should exist.
- Cannot create/edit: Escalate permission grants for role management codes.
Related
- Permissions — end-user explanation of access denied and route requirements.
- User management