Get User Groups

GET {{baseUrl}}/rest/api/3/user/groups?accountId=<string>&username=<string>&key=<string>

Returns the groups to which a user belongs.

Permissions required: Browse users and groups global permission.

Request Params

KeyDatatypeRequiredDescription
accountIdstring(Required) The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5.
usernamestringThis parameter is no longer available and will be removed from the documentation soon. See the deprecation notice for details.
keystringThis parameter is no longer available and will be removed from the documentation soon. See the deprecation notice for details.

RESPONSES

status: OK

{&quot;name&quot;:&quot;jira-administrators&quot;,&quot;self&quot;:&quot;https://your-domain.atlassian.net/rest/api/3/group?groupname=jira-administrators&quot;}