Create a custom role
Create a custom role when no built-in role fits an employee's tasks. A custom role is assigned in a VDC (virtual data center), like VDC admin.
Before you begin
- You need the Cluster master role.
- The privileges are chosen. The Center web interface shows their names in English; for the full list, see Roles and privileges.
- You have a role name: up to 64 characters, different from the name of any other role.
- If this will be the user's only role, include the
Web UIprivilege (theUser Interfacecategory) in it: without it, the user cannot sign in to the web interface.
Create the role
-
In the left menu, select Provider Data Center → Users & Roles.
-
Open the Roles tab and click Create role above the table. The Create role window opens.
-
Enter the role name in the Name field.
Before you select privileges, keep two restrictions in mind:
- Cluster-level privileges — for example, from the
NodeandUsercategories — apply to the whole cluster, even if the role is assigned in one VDC. Do not include them in a role for VDC users. - The form shows
Configure DRS,Apply DRS RecommendationsandMaintain Cluster Node, but do not select them for a custom role: Center does not create a role with them. Only Cluster master has these permissions. The role management privileges —Create Role,Edit Role,Delete Role,View Role Details— are not in the form.
- Cluster-level privileges — for example, from the
-
Click the category name in the Privileges block, for example
VM, and select the privileges you need in the list. The list has a search. The checkbox to the left of a category selects all its privileges at once. -
Check the role's privileges in the Selected block. The Reset button clears all selections.
-
Click Create role at the bottom of the window. The button is available when a name is entered and at least one privilege is selected. The web interface shows Role <name> has been successfully created and opens the role page.
Check the result
The role appears in the table on the Roles tab of the Users & Roles page. The Creator column shows your name, and the scope column shows vdc_id: the role is assigned in a VDC.
If the role is not created, the web interface shows a notification with the error. Common causes: the name is already taken, or the role includes one of the Configure DRS, Apply DRS Recommendations, Maintain Cluster Node privileges: the error "Role management privileges cannot be assigned to custom roles". Clear these privileges and create the role again.
More
- The role is not yet assigned to any user. Assign it to users in the VDCs you need — Assign a role.
- You can change the role's privileges later on its page — Grant and revoke a privilege.
Next
- Assign a role
- Roles and access — scopes and cluster-level privileges.
- Roles and privileges
API methods: role-create — in the API reference.