Skip to content
View as Markdown
View as Markdown

@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

AccountManagerRolesClient

Account Manager Roles client

Returns

Promise<RoleMapping>

Role mapping

Released under the Apache-2.0 License.