# List group details

Launch stage: Public Preview

`GET /api/2.0/preview/scim/v2/Groups`

Gets all details of the groups associated with the Databricks workspace.

API scopes: scim

## Query parameters

- `filter` (string, optional)
  Query by which the results have to be filtered. Supported operators are equals(`eq`), contains(`co`), starts with(`sw`) and not equals(`ne`). Additionally, simple expressions can be formed using logical operators - `and` and `or`. The [SCIM RFC](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) has more details but we currently only support simple expressions.
  Example: `displayName co "foo" and displayName co "bar"` : Group whose displayName contains foo and displayName contains bar.
  Example: `displayName co "foo"` : Groups whose displayName contains foo.
  Example: `displayName eq "admins"` : Groups whose displayName equals admins.
  Example: `displayName ne "baz"` : Groups whose displayName not equals baz.
  Example: `displayName co "foo" or displayName co "bar"` : Group whose displayName contains foo or displayName contains bar.
  Example: `displayName sw "bar"` : Groups whose displayName starts with bar.
- `attributes` (string, optional)
  Comma-separated list of attributes to return in response.
- `excludedAttributes` (string, optional)
  Comma-separated list of attributes to exclude in response.
- `startIndex` (int64, optional)
  Specifies the index of the first result. First item is number 1.
- `count` (int64, optional)
  Desired number of results per page.
  Constraints: `<= 100`
- `sortBy` (string, optional)
  Attribute to sort the results.
- `sortOrder` (string, optional)
  The order to sort the results.
  Possible values:
  - `ORDER_UNSPECIFIED`
  - `ascending`
  - `descending`

## Returns

Returns a list of Group objects.

## Response

```json
{
  "itemsPerPage": 0,
  "Resources": [
    {
      "displayName": "string",
      "entitlements": [
        {}
      ],
      "externalId": "string",
      "groups": [
        {}
      ],
      "id": "string",
      "members": [
        {}
      ],
      "roles": [
        {}
      ],
      "schemas": [
        "urn:ietf:params:scim:schemas:core:2.0:Group"
      ]
    }
  ],
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:ListResponse"
  ],
  "startIndex": 1,
  "totalResults": 0
}
```

