Skip to content
View as Markdown
View as Markdown

@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

AccountManagerUsersClient

Account Manager client

options

GrantRoleOptions

Grant options (userId, role, optional scope)

Returns

Promise<{ }>

Updated user

Released under the Apache-2.0 License.