-
Notifications
You must be signed in to change notification settings - Fork 1
DI‐Portal‐GS‐003: Roles Hierarchy
iugaidiana edited this page Feb 25, 2025
·
1 revision
Design Item ID: DI-Portal-GS-003
Design Item Name: Roles Hierarchy
Related Design Items:
Related API:
- Get list of existing roles (GET /api/v2/roles)
- Update the roles order (POST /api/v2/roles/changeOrder)
Revision History:
Date | Description |
---|---|
The functionality allows users to update the order of existing roles, excluding OOB roles such as Administrator, None, and Viewer.
- APIHUB → Global Setting
Roles has hierarchical order. This order is taken into account when:
- user (user1) assign's role to another user (user2) in some package. In this case, user1 can assign only those roles to the user that is not higher that his own role on current package.
- user generates token with specific role for the package. In this case, user can generate a token only with those roles that is not higher that his own role on the current package.
By default, newly created role has lowest rank after None and Viewer roles.
Roles hierarchy:
- User opens Roles Hierarchy tab.
- The system displays list of all existing role in hierarchical order.
- API to show the list of roles - GET /api/v2/roles. Parameter 'rank' defines order of the role: the higher the rank, the higher the role.
- Administrator role always has highest rank (1000) and it cannot be changed (the role has readOnly = true).
- None role always has lowest rank (0) and it cannot be changed (the role has readOnly = true).
- Viewer role always has the second lowest rank (1) and it cannot be changed (the role has readOnly = true).
- User drags role and moves it higher/lower.
- User clicks Save.
- The system updated order (ranks) of the roles.
- API to update role order - POST /api/v2/roles/changeOrder.
- Navigation to APIHUB (log in / log out)
- Create Workspace
- Create Group
- Create Package
- Favorite packages, dashboards, groups, workspaces
- Shared Packages
- Activity History in Main Page