> Documentation index for agents: /hcp/3.3/en/llms.txt

# 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](/hcp/3.3/en/users/create-role/index.md). 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](/hcp/3.3/en/users/assign-role/index.md).

## Change the role's privileges

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

2. Open the **Roles** tab.

3. Click the role row in the table. The role page opens.

   Cluster-level privileges — for example, from the `Node` and `User` categories — apply to the whole cluster, even if the role is assigned in one virtual data center (VDC). Do not select `Configure DRS`, `Apply DRS Recommendations` and `Maintain Cluster Node` for a custom role: Center does not save the role with them.

4. Click the category name in the **Privileges** block of the **General properties** section, for example `VM`. The list of its privileges opens.

5. Select a privilege to grant it, or clear it to revoke it.

6. Check the role's privileges in the **Selected** block.

7. 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](/hcp/3.3/en/users/assign-role/index.md).
- **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](/hcp/3.3/en/users/assign-role/index.md)
- [Roles and access](/hcp/3.3/en/users/index.md) — how privileges add up and where they apply.
- [Roles and privileges](/hcp/3.3/en/reference/roles-privileges/index.md) — all privileges.

API methods: `role-set`, `role-delete` — in the [API reference](/hcp/3.3/en/api/methods/index.md).
