# List SCIM groups

> Source: https://truto.one/docs/api-reference/admin/scim-groups/list/

`GET /scim-group`

Resource: **SCIM Groups**

## Query parameters

- **`team_id`** _(string)_
  Filter groups by team ID.
- **`display_name`** _(string)_
  Filter groups by display name.
- **`id`** _(string)_
  Filter groups by group ID.

## Response body

- **`result`** _(array<object>)_
  - **`id`** _(string)_
    The ID of the SCIM group.
  - **`team_id`** _(string)_
    The ID of the team that owns this SCIM group.
  - **`external_id`** _(string)_
    The group's identifier in the upstream identity provider.
  - **`display_name`** _(string)_
    The human-readable name of the group, as pushed by the IdP.
  - **`member_count`** _(number)_
    Number of users currently in this group.
  - **`created_at`** _(string)_
    The date and time when the group was first provisioned.
  - **`updated_at`** _(string)_
    The date and time when the group was last updated.
- **`next_cursor`** _(string)_
- **`limit`** _(number)_

## Code examples

### curl

```bash
curl -X GET 'https://api.truto.one/scim-group' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
const response = await fetch('https://api.truto.one/scim-group', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

url = "https://api.truto.one/scim-group"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}

response = requests.get(url, headers=headers, params=params)
print(response.json())
```
