Unable to assign roles to employees

For unknown reasons, I can’t assign roles to employees
Tried through the changes window, didn’t work
Tried through the “Choice” component, didn’t work
During development, everything worked, but when I opened the application on my phone and on my computer, it doesn’t work
Works only in the developer window

Hi @Bilol
You can only assign your own role when you have set row owner on a column.
If you want to set another role then you have to use Glide API or make to do so.

1 Like
1 Like

Roles can only be assigned by a builder of the application (admin or member of the team) in the Data Editor. Roles cannot be assigned via the live published app.

Glide Documentation:

Users cannot set roles from an app. This is a security measure to keep your app safe from potential misuse by a user. If a new user signs up for a User Profile in your app, they won’t be assigned a specific role. Glide will leave the role field blank, and you can assign roles to new users in your user table.

1 Like

im not a Glide Expert, but did have this need for my app as well. As a workaround, I created Role Levels instead. Given as you can’t assign Roles in the Live App, i created custom actions upon signup that auto-assigns their Role Level. that works for me. might work for you.

The main consideration when using Role functionality is data security through row owners. If data separation and security is less of a concern, and you only use roles for filters or visibility conditions, then pseudo roles may be sufficient using a column that is not configured as a Role column in the user profile configuration.

4 Likes