Solving the request I added this Thursday Being able to add roles from the app without having to manually enter them in the database
Hope I don’t add to the confusion, but can’t you manually assign a role to the head HR person at each company when they join, who then has permission enter a person’s profile via an Inline list, click edit, which is only visible to a HR person and update that individual’s Role?
That’s the whole point, to be able to add it without having to click edit, just when you create the user from the app
yes, except that doesn’t work
Well I dont think it works for his specific use case. But in my app, I have Users, Contributors and Admin. As Admin, via the app, I can access people’s profiles, click the edit pencil and update the text field, which houses the Role. The Text Field is only visible to Admins so a User or Contributor cannot change it themselves.
Maybe I dont have roles setup correctly? Its just a text column called “Access Level” lol.
mmm, what I’ve been referring to are the Roles that are only available with a Private Pro plan.
What you have could probably be called “pseudo-roles”. Perfectly fine for driving visibility, but cannot be used as Row Owners.
Ah yes, I don’t use Private Pro
See… I added to the confusion
And now I see: "At the moment, you cannot change somebody’s role via the app. A role can only be changed via the sheet or Data Editor. If you show the Roles column in the app somewhere, users will be able to change the value - but this will not affect the backend and you will see the value change back. "
yes, that’s right. Except (as my earlier test demonstrated) you can change somebody’s role via the app, but only if you’re using an array column for your roles - and then you can change all but the first column in the array. That’s probably a bug, but please don’t tell anyone as I’m intending to exploit it
I’ll update this question.
Has anyone found a way to change user roles through the application?
I believe you can change the role as long as the user making the change also contains the same role they are changing it to. A role cannot be changed to a role that the user does not belong to.
Your answer means that super-admin roles have not yet been invented.
If your User Profiles table is connected to a Google Sheet, then it’s possible by using a 3rd party such as Make. I’ve not tested it via the Glide API. I suspect that it wouldn’t work. If it does, that might be considered a security hole.
You can set it via API in a Glide table. If that is ever changed, I’ll have apps dead in the water.
Edit: I would be surprised if this ability was removed from only Glide tables, because it could still be done in Google Sheets or Airtable.
I won’t tell anyone
Just in case, I will raise the topic of roles again.
I checked, nothing has changed in my application (read - in Glide), I can still only add a user with the same role as mine.
Does it make sense to wait for this important change or will it stay like this forever?
It’s likely to stay like that. One workaround to changing a users role is to delegate the action to a 3rd party like Make.