> 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).
