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
Key | Datatype | Required | Description |
---|---|---|---|
accountId | string | (Required) The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5. | |
username | string | This parameter is no longer available and will be removed from the documentation soon. See the deprecation notice for details. | |
key | string | This parameter is no longer available and will be removed from the documentation soon. See the deprecation notice for details. |
RESPONSES
status: OK
{"name":"jira-administrators","self":"https://your-domain.atlassian.net/rest/api/3/group?groupname=jira-administrators"}