Skip to main content

Assign roles within a VDC

Assign a user a role within a VDC (virtual data center) when they need access to the resources of one VDC, but not of the whole cluster. What each role grants — VDCs.

Before you begin​

  • You need the Cluster master role or a custom role with the "Assign User Role" privilege.
  • The user already exists — Create a user and set a password.
  • A VDC role is chosen: VDC admin, VDC user, VDC viewer or Vm Developer. You can also choose a custom role if it applies within one VDC — Create a custom role.

Assign the role​

  1. In the left menu, select Provider Data Center → Users & Roles and click the row of the user on the Users tab. The user page opens.

  2. Select Actions → Assign a role. The Are you sure want to assign a role to user <name>? window opens.

  3. Select the role in the User role field.

  4. Select the VDC in the VDC field. The field is available only for roles that apply within one VDC.

  5. Click Assign.

In the User role list, the roles have English names:

In the listRole
"vDC Admin"VDC admin
"vDC User"VDC user
"vDC Viewer"VDC viewer
"VM Developer"Vm Developer

Check the result​

The web interface shows the notification User <name> (id: <number>) is now <role> in <VDC>. The role appears in the VDC roles table on the page of this VDC: Virtual Data Centers → the VDC. This table only shows roles: you assign and revoke them on the user page. Clicking a table row opens the user page.

If the user is already signed in to the web interface, the new VDC and the actions in it appear for them after they refresh the browser page. They do not need to sign in again.

If the role could not be assigned, the web interface shows a notification with the error. Center does not assign a role again if the user already has it in this VDC.

More​

  • To assign roles in several VDCs, repeat the steps for each VDC. A user can have different roles in different VDCs.
  • Global roles, for example Cluster master, apply to the whole cluster; the VDC field is hidden for them — Assign a role.
  • To revoke a role, click ⋯ in the VDC row of the Assigned roles section on the user page and select Deassign a Role, or select Actions → Deassign a Role — Assign a role.
  • When a VDC is deleted, Center automatically removes all roles in it.

Next​

API methods: user-role-assign, vdc-roles — in the API reference.