> For the complete documentation index, see [llms.txt](https://docs.cloudio.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudio.io/creating-datasources/working-with-datasources/creating-a-data-source/untitled.md).

# Assigning roles to a data source

Datasources are secured by assigning roles with permissions for access and other operations. You can assign a datasource to one or more roles. You can control their level of access by selecting the required permissions during the creation of datasources.

1. To assign roles to a datasource, open the **\</>Roles** tab. The **Roles** pane is displayed.

![](/files/-M2HClkU68-o83A2dBPi)

&#x20;2\. To select a role to assign permissions, in the upper right corner of the **Roles** pane, click **Add.**

A row is added in the **Roles** table.

![](/files/-M2HALijEZLWmXd4ipm5)

&#x20;3\. Under the **Role** column, from the list, select a role for which permissions are to be assigned.

![](/files/-M2HALikbtPDNc07lUU6)

&#x20;3\. To assign permissions to the selected role, select the required checkboxes in the respective columns.

The following permissions can be assigned to the roles:

| **Permission** | **Description**                                                                                                                                                              |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Insert allowed | Indicates permission to insert a new record                                                                                                                                  |
| Update Allowed | Indicates permission to update an existing record                                                                                                                            |
| Audit Allowed  | <p>Indicates permission to view the changes made by others from the Audit Page</p><p><strong>Note</strong>: Audit Page can be accessed from File>Record> Audit menu item</p> |
| Delete Allowed | Indicates permission to delete an existing record                                                                                                                            |
| Query Allowed  | Indicates permission to fetch data                                                                                                                                           |

&#x20;4\. If you want to assign permissions to another role, repeat steps 1 to 4 or click **Save**.

The selected permissions are assigned to the role(s).


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cloudio.io/creating-datasources/working-with-datasources/creating-a-data-source/untitled.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
