> For the complete documentation index, see [llms.txt](https://intuitem.gitbook.io/ciso-assistant/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://intuitem.gitbook.io/ciso-assistant/api-documentation/api-reference/roles.md). Agents can also search and read this documentation through its [MCP server](https://intuitem.gitbook.io/ciso-assistant/~gitbook/mcp).

# Roles

## GET /api/roles/

> Read-only roles endpoint: serves the folder default-role display and pickers.\
> \
> Role management (create/update/delete, with per-folder group provisioning)\
> is not exposed here; a module may register its own RoleViewSet on the same\
> route, which takes precedence over this one.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"roles"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"PaginatedRoleReadList":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer"},"next":{"type":"string","nullable":true,"format":"uri"},"previous":{"type":"string","nullable":true,"format":"uri"},"results":{"type":"array","items":{"$ref":"#/components/schemas/RoleRead"}}}},"RoleRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string"},"permissions":{"type":"string","readOnly":true},"folder":{"type":"string","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"description":{"type":"string","nullable":true},"builtin":{"type":"boolean","readOnly":true}},"required":["builtin","created_at","folder","id","name","permissions","updated_at"]}}},"paths":{"/api/roles/":{"get":{"operationId":"roles_list","description":"Read-only roles endpoint: serves the folder default-role display and pickers.\n\nRole management (create/update/delete, with per-folder group provisioning)\nis not exposed here; a module may register its own RoleViewSet on the same\nroute, which takes precedence over this one.","parameters":[{"in":"query","name":"created_at__date","schema":{"type":"string","format":"date"}},{"in":"query","name":"created_at__date__gt","schema":{"type":"string","format":"date"}},{"in":"query","name":"created_at__date__gte","schema":{"type":"string","format":"date"}},{"in":"query","name":"created_at__date__lt","schema":{"type":"string","format":"date"}},{"in":"query","name":"created_at__date__lte","schema":{"type":"string","format":"date"}},{"in":"query","name":"created_at__gt","schema":{"type":"string","format":"date-time"}},{"in":"query","name":"created_at__gte","schema":{"type":"string","format":"date-time"}},{"in":"query","name":"created_at__isnull","schema":{"type":"boolean"}},{"in":"query","name":"created_at__lt","schema":{"type":"string","format":"date-time"}},{"in":"query","name":"created_at__lte","schema":{"type":"string","format":"date-time"}},{"in":"query","name":"genericcollection","schema":{"type":"array","items":{"type":"string","format":"uuid"}},"description":"Multiple values may be separated by commas.","explode":false,"style":"form"},{"in":"query","name":"id","schema":{"type":"array","items":{"type":"string","format":"uuid"}},"description":"Multiple values may be separated by commas.","explode":false,"style":"form"},{"name":"limit","required":false,"in":"query","description":"Number of results to return per page.","schema":{"type":"integer"}},{"name":"offset","required":false,"in":"query","description":"The initial index from which to return the results.","schema":{"type":"integer"}},{"name":"ordering","required":false,"in":"query","description":"Which field to use when ordering the results.","schema":{"type":"string"}},{"in":"query","name":"updated_at__date","schema":{"type":"string","format":"date"}},{"in":"query","name":"updated_at__date__gt","schema":{"type":"string","format":"date"}},{"in":"query","name":"updated_at__date__gte","schema":{"type":"string","format":"date"}},{"in":"query","name":"updated_at__date__lt","schema":{"type":"string","format":"date"}},{"in":"query","name":"updated_at__date__lte","schema":{"type":"string","format":"date"}},{"in":"query","name":"updated_at__gt","schema":{"type":"string","format":"date-time"}},{"in":"query","name":"updated_at__gte","schema":{"type":"string","format":"date-time"}},{"in":"query","name":"updated_at__isnull","schema":{"type":"boolean"}},{"in":"query","name":"updated_at__lt","schema":{"type":"string","format":"date-time"}},{"in":"query","name":"updated_at__lte","schema":{"type":"string","format":"date-time"}}],"tags":["roles"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedRoleReadList"}}},"description":""}}}}}}
```

## GET /api/roles/{id}/

> Read-only roles endpoint: serves the folder default-role display and pickers.\
> \
> Role management (create/update/delete, with per-folder group provisioning)\
> is not exposed here; a module may register its own RoleViewSet on the same\
> route, which takes precedence over this one.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"roles"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"RoleRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string"},"permissions":{"type":"string","readOnly":true},"folder":{"type":"string","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"description":{"type":"string","nullable":true},"builtin":{"type":"boolean","readOnly":true}},"required":["builtin","created_at","folder","id","name","permissions","updated_at"]}}},"paths":{"/api/roles/{id}/":{"get":{"operationId":"roles_retrieve","description":"Read-only roles endpoint: serves the folder default-role display and pickers.\n\nRole management (create/update/delete, with per-folder group provisioning)\nis not exposed here; a module may register its own RoleViewSet on the same\nroute, which takes precedence over this one.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this role.","required":true}],"tags":["roles"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleRead"}}},"description":""}}}}}}
```

## GET /api/roles/{id}/cascade-info/

> Read-only roles endpoint: serves the folder default-role display and pickers.\
> \
> Role management (create/update/delete, with per-folder group provisioning)\
> is not exposed here; a module may register its own RoleViewSet on the same\
> route, which takes precedence over this one.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"roles"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/roles/{id}/cascade-info/":{"get":{"operationId":"roles_cascade_info_retrieve","description":"Read-only roles endpoint: serves the folder default-role display and pickers.\n\nRole management (create/update/delete, with per-folder group provisioning)\nis not exposed here; a module may register its own RoleViewSet on the same\nroute, which takes precedence over this one.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this role.","required":true}],"tags":["roles"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/roles/{id}/neighborhood/

> Read-only roles endpoint: serves the folder default-role display and pickers.\
> \
> Role management (create/update/delete, with per-folder group provisioning)\
> is not exposed here; a module may register its own RoleViewSet on the same\
> route, which takes precedence over this one.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"roles"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/roles/{id}/neighborhood/":{"get":{"operationId":"roles_neighborhood_retrieve","description":"Read-only roles endpoint: serves the folder default-role display and pickers.\n\nRole management (create/update/delete, with per-folder group provisioning)\nis not exposed here; a module may register its own RoleViewSet on the same\nroute, which takes precedence over this one.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this role.","required":true}],"tags":["roles"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/roles/{id}/object/

> Read-only roles endpoint: serves the folder default-role display and pickers.\
> \
> Role management (create/update/delete, with per-folder group provisioning)\
> is not exposed here; a module may register its own RoleViewSet on the same\
> route, which takes precedence over this one.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"roles"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/roles/{id}/object/":{"get":{"operationId":"roles_object_retrieve","description":"Read-only roles endpoint: serves the folder default-role display and pickers.\n\nRole management (create/update/delete, with per-folder group provisioning)\nis not exposed here; a module may register its own RoleViewSet on the same\nroute, which takes precedence over this one.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this role.","required":true}],"tags":["roles"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/roles/autocomplete/

> Read-only roles endpoint: serves the folder default-role display and pickers.\
> \
> Role management (create/update/delete, with per-folder group provisioning)\
> is not exposed here; a module may register its own RoleViewSet on the same\
> route, which takes precedence over this one.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"roles"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/roles/autocomplete/":{"get":{"operationId":"roles_autocomplete_retrieve","description":"Read-only roles endpoint: serves the folder default-role display and pickers.\n\nRole management (create/update/delete, with per-folder group provisioning)\nis not exposed here; a module may register its own RoleViewSet on the same\nroute, which takes precedence over this one.","tags":["roles"],"responses":{"200":{"description":"No response body"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://intuitem.gitbook.io/ciso-assistant/api-documentation/api-reference/roles.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
