GET /rest/api/2/user/groups

Returns the groups to which a user belongs.

Permissions required: Browse users and groups global permission.

Servers

Query parameters

Name Type Required Description
username String No

This parameter is no longer available. See the deprecation notice for details.

accountId String Yes

The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5.

key String No

This parameter is no longer available. See the deprecation notice for details.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.