# Roles

Assign user groups to different permissions and users by creating roles.&#x20;

## Create User Roles

1. Click <img src="https://3670244749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6QaGf7ZvNU2Re8mlQTaJ%2Fuploads%2F6MACvhEEvM6FAZfOqvw6%2FCleanShot%202024-05-03%20at%2012.43.07%402x.png?alt=media&#x26;token=58951157-77fb-4ddb-a5c8-dce654aa7e54" alt="" data-size="line">**App settings**
2. Click **Roles**
3. Click **Enable Roles**
4. Click **+Add Roles**
5. Add a name for your role
6. Select which pages you want to give the role access to

{% hint style="info" %}
Checking the "Can read/modify all data" means your role will not appear in the permissions table and can read/modify all data in the app. Uncheck this if you want to apply permissions to your roles.
{% endhint %}

### Setup your data for roles

1. Go to<img src="https://3670244749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6QaGf7ZvNU2Re8mlQTaJ%2Fuploads%2FhTZDNl1iTPyTpvylyDfe%2FCleanShot%202024-04-02%20at%2009.08.24%402x.png?alt=media&#x26;token=5d8077d2-064e-4f87-bd6e-d2b09f9b3e98" alt="" data-size="line">**Manage Fields and Data**
2. Go to your connected Users table
3. Add a dropdown field titled “Role”&#x20;
4. Assign your users a “Role” on the table

### Use Table Groups to Assign Roles

1. Go to<img src="https://3670244749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6QaGf7ZvNU2Re8mlQTaJ%2Fuploads%2FJ8VUsXb72CQRMbi3lfaC%2FCleanShot%202024-04-02%20at%2009.07.22%402x.png?alt=media&#x26;token=712c77df-306b-4976-a434-60cc47df1270" alt="" data-size="line">**Manage Users**
2. Select **Create table group**
3. Select the table
4. Assign this group a role
5. Select the field with the email addresses of the users
6. Set a data filter (optional)&#x20;

{% hint style="info" %}
You can use field conditions to determine a user's role, for example, if the field **Position** is **Director** assign the role **Director.**&#x20;
{% endhint %}
