# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
