Skip to content

@salesforce/b2c-tooling-sdk / clients / getRole

Function: getRole() ​

getRole(client, roleId): Promise<{ }>

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:586

Retrieves details of a role by ID.

Parameters ​

client ​

AccountManagerRolesClient

Account Manager Roles client

roleId ​

string

Role ID

Returns ​

Promise<{ }>

Role details

Throws ​

Error if role is not found or request fails

Released under the Apache-2.0 License.