Automatically assign Roles
Last updated
Last updated
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.
Go to Manage Fields and Data
Go to your connected Users table
Add a dropdown field titled “Role”
Assign your users a “Role” on the table
If you are using an external data source, please sync your schema and enable the new field
Go to Manage Users
Select Setup user table next to the user's table name
Select Add Conditional Filter
Choose the Role name
Select Filter and choose the field named Roles
Choose the Role name in the next drop-down
Repeat as needed
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.