Issue when changing the user's role

I have the following issue
I have User U1 that has a regular account with no role
U1 uses the app normally
I set the U1 to a manager role and the app should reveal pages that are available to managers, but it doesn’t update for that role.

Any suggestions ?

PS. I’ve closed the app, open it again, singed out and nothing

The first thing I would check is visibility settings on the pages/tabs/screens in question.

I’ve checked them because in the preview it’s working … in my phone it doesn’t

Also, another issue I see here is that if I change a page to not be visible to an user without a certain role, it will be visible to the user until the user closes the app and reopens it.

Let’s say I’m creating a certain page … if I don’t put in the next minute a visibility condition and someone enters that page, that user can see the page , even if it’s empty, or maybe with some default data that the page has added automatically, until the user closes the app … which is not good from my perspective and should be improved

Are you using manual or auto publishing?
If manual, have you published the changes?

Either way, it might be that your phone doesn’t have the latest version of your app. Try killing it and re-launching it.

If all that fails, we might need to see some screenshots of your settings.

I’ve seen where the issue is in order to be recreated

  1. If I add the role manually inside Glide tables … it works like a charm
  2. If I add the role using an action to change a value - it doesn’t work

Who can we inform about this bug ?

I’ve seen the bug thread and it has too many info to add :roll_eyes: :smiley:

The solution to this one is to use manual publishing. Then you can publish changes when you are ready to.

1 Like

For that it should work, thank you, but still, the main problem isn’t solved

In order to assign a role to a user, the user assigning the role must have the same role. Is that the case here?

Yes

I have a Manager that has a button and can make another user a manager - so if I add the value to the user directly in the table, it works, if I add it using the button, it doesn’t … same value , and it’s added correctly inside the table, no spaces etc.

Okay, so that sounds like it should work.
Give me a little while to see if I can replicate that behaviour.

I appreciate your help very much … Thank you.

Yeah, I think there might be a bug there. I need to do a little more testing to confirm, then I’ll report it.

1 Like

Is there a way to know after the bug is solved in order to be able to add the functionality after that ?

Actually, I take back what I said. It’s not a bug at all. I just checked the docs and I’d forgotten about the following:

The way to work around this if you want to set roles from the app is to use an external service. For example, you can trigger a webhook to Make, and then have Make use the API to set the users role.

1 Like

In the future this could be done inside the app ?

I don’t know.

You can assign a role when a user is created (as long as you have the role you want to assign), but you can’t change roles via the app.

Do you have the link to that page , maybe it has more info, or do you have a tutorial on how to do that … I’m new to Make, but I will figure it out somehow :slight_smile:

No, sorry. I’ve done it, but I don’t have anything that I could share.

I know that @NFNHello does this a bit, he might have something that he can share.

If you are using a Google Sheet as the home to your Role column, you can point the Role column to another column that you update. So, if your Role column is A with a Role value in A2, you can use an equation like ‘=B2’. You can add complexity to this to assign roles other than the one you are assigned, i.e., your equation can use more than just column B to make it do what you want.

If you are using a Glide table, then you need to use a service like Zapier or Make to assign this value to the correct cell. In fact, this is a perfect entry into using Glide with either of these services to send a value from Glide out, and then that value (or another) back to Glide to the correct table/row/column. I’ve learned a lot from the youtube videos made by @Darren_Alderman and @Robert_Petitto, you should check them out if you haven’t already.

Also, anyone working for Glide, if this Role setting ability is a bug, please don’t fix it! :rofl:

4 Likes