@salesforce/b2c-tooling-sdk / operations/users / grantRole
Function: grantRole() ​
grantRole(
client,options):Promise<{ }>
Defined in: packages/b2c-tooling-sdk/src/operations/users/index.ts:184
Grants a role to a user, optionally with scope. This updates the user's roles and roleTenantFilter.
Parameters ​
client ​
Account Manager client
options ​
Grant options (userId, role, optional scope)
Returns ​
Promise<{ }>
Updated user