getUserGroupsOfUser()
Home > @gooddata/sdk-backend-spi > IOrganizationUserService > getUserGroupsOfUser
IOrganizationUserService.getUserGroupsOfUser() 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.
Get groups assigned to the user.
Signature:
getUserGroupsOfUser(userId: string): Promise<IUserGroup[]>;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| userId | string | ID of the user. | 
Returns:
Promise<IUserGroup[]>
promise