Assign roles to users within a project
Overview of roles assignment to users in CubeCMPβ
User roles define which resources a user account can access within a CubeCMP project. By assigning appropriate roles, you control access to cloud resources and enforce resource allocation and compliance policies. CubeCMP uses a role-based access control (RBAC) model that scales efficiently across multiple projects.
Role assignments are configured in User Management by setting a role label on the user account. CubeCMP determines project access based on the value of this label.
Prerequisitesβ
- Note down the case-sensitive project name that you want to manage the user permissions for
- Existing usernames to assign roles to
Role label formatβ
The role assignment is defined in the user manage with a role label. To assign project roles to users, use the following syntax for the role label.
<project-name>should match the exact name of the target project.- Use a single hyphen (-) to separate the project name and the assigned role.
<role>must be one of the following:admin: Grants full access and control over all project resources.member: Grants access to assigned resources.
The ## separator is only necessary when assigning roles to the same user across multiple projects.
To assign a role to a user, refer to the following syntaxes.
- Assign a role within a single project
- Assign roles across multiple project
<project-name>-<role>
<first-project-name>-<role>##<second-project-name>-<role>
Assign roles to grant access to resourcesβ
Role labels follow these rules:
- Use the
##prefix for the second and each subsequent project-role entry. - The Key and Value fields are case-sensitive. Use the exact casing for project roles, project names, and role values.
-
Navigate to
https://<your-portal-ip>/authand login with a user with administrative privileges. -
Show all existing users.
Navigate to
Manage -> Users, clickView all usersto show all local authentication users.
-
Select the user ID of the user to manage roles.
-
Go to the
Attributestab in the user profile. -
Enter
ProjectRolein theKeyfield. -
Enter the project and role to be assigned in the
Valuefiled.
- Assign a role within a single project
- Assign roles across multiple project
<project-name>-<role>
<first-project-name>-<role>##<second-project_name>-<role>
- Click
Addafter entering theKeyandValuefields. - Click
Saveto save the changes.
Example configurationβ
You can assign a user different roles in multiple projects by combining multiple project-role labels in the same value. Each label explicitly associates the user with a project and role.
- Sample - Assign a role within a single project
- Sample - Assign roles across multiple project
PROJ001-admin
Assigns the user as an admin of the PROJ001 project.
PROJ001-admin##PROJ002-member
Assigning the PROJ001-admin role grants the user administrative access to project PROJ001. Appending ##PROJ002-member further expands their permissions to include membership in project PROJ002.
You can modify or update these assignments at any time based on project requirements and access control policies.