> For the complete documentation index, see [llms.txt](https://docs.stackerhq.com/stacker-astra/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackerhq.com/stacker-astra/security/roles.md).

# Roles

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

## Create User Roles

1. Click <img src="/files/2cw5fvUjZl8AwRzMwTi8" 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="/files/xCkvVa1dO3F7n6fTHS3C" 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="/files/7EUqFlfRbTO9IiyMQE2r" 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 %}
