addUsersToUserGroups()
Home > @gooddata/sdk-backend-spi > IOrganizationUserService > addUsersToUserGroups
IOrganizationUserService.addUsersToUserGroups() method
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Add users to multiple user groups.
Signature:
addUsersToUserGroups(userIds: string[], userGroupIds: string[]): Promise<void>;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| userIds | string[] | IDs of the users that will be assigned to user groups. | 
| userGroupIds | string[] | IDs of the users groups to which user will be assigned. | 
Returns:
Promise<void>
promise