Developer Preview — This project is in active development. APIs may change. Provide feedback
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:552

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.