Home > @vsf-enterprise/sap-commerce-webservices-sdk > CustomerGroupsApi > replaceUsersForCustomerGroup

CustomerGroupsApi.replaceUsersForCustomerGroup() method

Sets members for a user group. The list of existing members is overwritten with a new one. To try out the methods of the Customer Groups controller, you must authorize a user who belongs to the “customermanagergroup”. Sets members for a user group.

Signature:

replaceUsersForCustomerGroup(baseSiteId: string, groupId: string, members: MemberList, options?: any): Promise<import("axios").AxiosResponse<void>>;

Parameters

Parameter Type Description
baseSiteId string Base site identifier
groupId string Group identifier.
members MemberList List of users to set for customer group.
options any Override http request option.

Returns:

Promise<import("axios").AxiosResponse<void>>

Exceptions

{RequiredError} CustomerGroupsApi