Grant and revoke a privilege
In Center, you grant a privilege through a custom role: add a privilege to the role, and everyone who has the role gets it; remove it, and the privilege is revoked. Privileges are not granted to a user directly.
Before you begin
- You need the Cluster master role.
- A custom role exists — Create a custom role. You cannot change the privileges of built-in roles: their page opens read-only.
- You know who has the role: the change affects all of them. If only one user needs the permissions, create a separate role for that user and assign it — Assign a role.
Change the role's privileges
-
In the left menu, select Provider Data Center → Users & Roles.
-
Open the Roles tab.
-
Click the role row in the table. The role page opens.
Cluster-level privileges — for example, from the
NodeandUsercategories — apply to the whole cluster, even if the role is assigned in one virtual data center (VDC). Do not selectConfigure DRS,Apply DRS RecommendationsandMaintain Cluster Nodefor a custom role: Center does not save the role with them. -
Click the category name in the Privileges block of the General properties section, for example
VM. The list of its privileges opens. -
Select a privilege to grant it, or clear it to revoke it.
-
Check the role's privileges in the Selected block.
-
Click Save. The button is available when there are changes. The web interface shows Role <name> has been successfully edited.
Check the result
The Selected block on the role page shows the new set of privileges. The Modified column on the Roles tab shows the time of the change.
The server applies the new set of privileges to the next request of each user who has this role: users do not need to sign in again. A user sees the new list of actions after refreshing the web interface page: the web interface loads permissions at sign-in and when a page opens.
If saving fails, the web interface shows a notification with the error. A common cause: the role includes Configure DRS, Apply DRS Recommendations or Maintain Cluster Node: the error "Role management privileges cannot be assigned to custom roles".
More
- Name (in the General properties section of the role page) — renames the role; the name must differ from the name of any other role.
- To revoke a privilege from one user rather than from everyone, revoke the role from that user — see the "More" section of Assign a role.
- Actions → Delete on the role page deletes the role after confirmation. The role is removed from all users, and they lose its permissions immediately. You cannot undo the deletion.
Next
- Assign a role
- Roles and access — how privileges add up and where they apply.
- Roles and privileges — all privileges.
API methods: role-set, role-delete — in the API reference.