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

![](https://1117313960-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LzMJAXNyRSI4WE3Jt4z%2F-M2HAxEKyIlOZ38_8y5d%2F-M2HClkU68-o83A2dBPi%2FRoles%20Pane.png?alt=media\&token=d734d895-627e-4775-91f6-e3eaef809748)

&#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.

![](https://1117313960-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fcloudio-new-documentation%2F-M2H9SQseC-rcy7QzMMw%2F-M2HALijEZLWmXd4ipm5%2F1.png?generation=1584074157661962\&alt=media)

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

![](https://1117313960-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fcloudio-new-documentation%2F-M2H9SQseC-rcy7QzMMw%2F-M2HALikbtPDNc07lUU6%2F2.png?generation=1584074158846614\&alt=media)

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