> For the complete documentation index, see [llms.txt](https://docs.cybus.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cybus.io/1-7-2/documentation/user-management/roles.md).

# Roles

## Overview

This gives a quick overview about the roles and their permissions.

<figure><img src="https://4142639966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7fj06nwrOaOPonB577Xs%2Fuploads%2Fgit-blob-9256320a06547a2986240d6c92eb0b261fd77761%2Froles_overview.png?alt=media" alt=""><figcaption></figcaption></figure>

## Creating New Roles

1. Click the + button in the top right toolbar to add a role.

<figure><img src="https://4142639966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7fj06nwrOaOPonB577Xs%2Fuploads%2Fgit-blob-e4bda5b059d87aba2c85ce8262125439fe6e20d4%2Froles_add.png?alt=media" alt=""><figcaption></figcaption></figure>

2\. Choose a name for the new role and either copy permissions from an already existing role or add specific permissions. Finish the creation by clicking the `CREATE` button in the bottom right.

<figure><img src="https://4142639966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7fj06nwrOaOPonB577Xs%2Fuploads%2Fgit-blob-aae51ee352cd6350d2261af089b603f8a7c76148%2Froles_add_dialog.png?alt=media" alt=""><figcaption></figcaption></figure>

## Editing Roles

A role can be edited in regards to its name, adding and removing custom permissions as well as copying permissions from other roles.

1. Open the edit dialog by clicking on one of the rows in the overview.

<figure><img src="https://4142639966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7fj06nwrOaOPonB577Xs%2Fuploads%2Fgit-blob-26c9a3177d8908dbfc7c8596fa38345c069982d3%2Froles_edit.png?alt=media" alt=""><figcaption></figcaption></figure>

2. Change the name accordingly and confirm the changes by clicking the `UPDATE` button.

<figure><img src="https://4142639966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7fj06nwrOaOPonB577Xs%2Fuploads%2Fgit-blob-b1b66e2914a9f90a9791c3246796c796af19e514%2Froles_edit_change_name.png?alt=media" alt=""><figcaption></figcaption></figure>

## Deleting Roles

1. Open the edit dialog by clicking on one of the rows in the overview.

<figure><img src="https://4142639966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7fj06nwrOaOPonB577Xs%2Fuploads%2Fgit-blob-26c9a3177d8908dbfc7c8596fa38345c069982d3%2Froles_edit.png?alt=media" alt=""><figcaption></figcaption></figure>

2. Delete the Role by clicking the `DELETE` button in the top right of the dialog.

<figure><img src="https://4142639966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7fj06nwrOaOPonB577Xs%2Fuploads%2Fgit-blob-73adbb0c944558464579d8f9ae6db5ef5e4019c7%2Froles_edit_delete.png?alt=media" alt=""><figcaption></figcaption></figure>

3. Click the delete button in the dialog.

<figure><img src="https://4142639966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7fj06nwrOaOPonB577Xs%2Fuploads%2Fgit-blob-718fdfb345d593be36c661b1c3b9844d5892bfba%2Froles_edit_delete_confirm.png?alt=media" alt=""><figcaption></figcaption></figure>


---

# 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://docs.cybus.io/1-7-2/documentation/user-management/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.
