Developer Preview — This project is in active development. APIs may change. Provide feedback
Skip to content

@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.