Skip to main content

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 UI privilege (the User Interface category) in it: without it, the user cannot sign in to the web interface.

Create the role​

  1. In the left menu, select Provider Data Center → Users & Roles.

  2. Open the Roles tab and click Create role above the table. The Create role window opens.

  3. Enter the role name in the Name field.

    Before you select privileges, keep two restrictions in mind:

    • Cluster-level privileges — for example, from the Node and User categories — 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 Recommendations and Maintain 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.
  4. 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.

  5. Check the role's privileges in the Selected block. The Reset button clears all selections.

  6. 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​

Next​

API methods: role-create — in the API reference.