# Automatically assign Roles

You can set filters to assign roles to your end users automatically when using the "Automatic" access setting for your user's table. If you have not already, Enable Roles in your app and connect a user's table before following this guide.

## Add a Roles Field:

1. Go to **Manage Fields and Data**
2. Go to your connected Users table
3. Add a dropdown field titled “Role”
4. Assign your users a “Role” on the table

![](https://support.stackerhq.com/hc/article_attachments/14850848073107)

If you are using an external data source, please sync your schema and [enable the new field](https://support.stackerhq.com/hc/en-us/articles/4409598246675-Enabling-tables-and-fields)

## Role Conditions:

1. Go to **Manage Users**
2. Select **Setup user table** next to the user's table name
3. Select **Add Conditional** Filter
4. Choose the Role name
5. Select **Filter** and choose the field named **Roles**
6. Choose the Role name in the next drop-down
7. Repeat as needed

![](https://support.stackerhq.com/hc/article_attachments/14850688325779)

You can set a "Default role" for users that do not have an assigned role.

You can use field conditions to determine a user's role, for example, if a field is empty or not empty.
