---
title: "List organization roles"
---

> 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 organization roles

Path: CloudRaker Workspace API › Organization Settings

`GET /roles`

Lists the product roles for the caller's organization, shaped for a role picker. Authorization: any authenticated member of the tenant. Not paginated.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/roles';
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/roles"

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

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

print(response.text)
```

## Responses

### 200

The organization’s product roles.

#### Example

```json
{
  "roles": [
    {
      "id": "string",
      "slug": "admin",
      "name": "Administrator",
      "description": "string"
    }
  ]
}
```

- `roles` (`listRoles.response.200.roles`; array<object>, required)
  - `id` (`listRoles.response.200.roles.id`; string, required)
  - `slug` (`listRoles.response.200.roles.slug`; string, required)
    - example `"admin"`
  - `name` (`listRoles.response.200.roles.name`; string, required)
    - example `"Administrator"`
  - `description` (`listRoles.response.200.roles.description`; string | null, required)


Source: https://docs.cloudraker.com/workspace/api/organization-settings/list-roles/index.md
