# List

Launch stage: Beta

`GET /api/2.0/identity/accounts/{account_id}/groups`

Lists the groups in the <Databricks> account, returning one page per call. Supports filtering by
 group name or external ID.

API scopes: identity

## Path parameters

- `account_id` (string, optional)
  Required. The account ID for which the groups are being fetched.

## Query parameters

- `page_size` (int32, optional)
  The maximum number of groups to return. The service may return fewer than this value.
- `page_token` (string, optional)
  A page token, received from a previous ListGroups call. Provide this to retrieve the subsequent page.
- `filter` (string, optional)
  Optional. Allows filtering groups by group name or external id.

## Returns

Returns a list of Group objects.

## Response

```json
{
  "groups": [
    {
      "account_id": "string",
      "group_id": "string",
      "external_id": "string",
      "group_name": "string"
    }
  ],
  "next_page_token": "string"
}
```

