Skip to content

Function: getUserGroups() ​

ts
function getUserGroups(
   client, 
   parameters, 
   options?
): Promise<object[]>;

Defined in: src/cloud/api/users.ts:240

Returns the groups to which a user belongs.

Permissions required: Browse users and groups global permission.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ accountId: string; }-
parameters.accountIdstringThe account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5.
options?RequestOptions-

Returns ​

Promise<object[]>