@salesforce/b2c-tooling-sdk / clients / fetchRoleMapping
Function: fetchRoleMapping()
fetchRoleMapping(
rolesClient):Promise<RoleMapping>
Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:124
Fetches all roles from the Account Manager roles API and builds a mapping between role id and roleEnumName.
Parameters
rolesClient
Account Manager Roles client
Returns
Promise<RoleMapping>
Role mapping