---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../../modules.md) / [operations/users](../index.md) / revokeRole

# Function: revokeRole()

> **revokeRole**(`client`, `options`): `Promise`\<\{ \}\>

Defined in: [packages/b2c-tooling-sdk/src/operations/users/index.ts:236](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/operations/users/index.ts#L236)

Revokes a role from a user, optionally removing specific scope.

## Parameters

### client

[`AccountManagerUsersClient`](../../../clients/type-aliases/AccountManagerUsersClient.md)

Account Manager client

### options

[`RevokeRoleOptions`](../interfaces/RevokeRoleOptions.md)

Revoke options (userId, role, optional scope)

## Returns

`Promise`\<\{ \}\>

Updated user
