---
title: "List all groups (teams) in the organization"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List all groups (teams) in the organization

Path: CloudRaker Workspace API › Authorization

`GET /authorization/groups`

Lists every team in the caller’s organization. Authorization: any authenticated organization member (reads are open; only mutations are administrator-only). No query or body. Returns the organization’s groups.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Code samples

### cURL

```bash
curl --request GET \
  --url https://api.cloudraker.com/authorization/groups \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/authorization/groups';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/authorization/groups"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The organization’s groups.

#### Example

```json
{
  "groups": [
    {
      "id": "string",
      "organizationId": "string",
      "name": "Legal",
      "description": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z"
    }
  ]
}
```

- `groups` (`listGroups.response.200.groups`; array<object>, required)
  - `id` (`listGroups.response.200.groups.id`; string, required)
  - `organizationId` (`listGroups.response.200.groups.organizationId`; string, required)
  - `name` (`listGroups.response.200.groups.name`; string, required)
    - example `"Legal"`
  - `description` (`listGroups.response.200.groups.description`; string | null, required)
  - `createdAt` (`listGroups.response.200.groups.createdAt`; string, required)
    - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
  - `updatedAt` (`listGroups.response.200.groups.updatedAt`; string, required)
    - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`


Source: https://docs.cloudraker.com/workspace/api/authorization/list-groups/index.md
