# Being able to add roles from the app and not only the editor

**URL:** https://community.glideapps.com/t/being-able-to-add-roles-from-the-app-and-not-only-the-editor/27222
**Category:** Feature Requests
**Created:** [May 25, 2021, 8:48pm UTC](https://community.glideapps.com/t/being-able-to-add-roles-from-the-app-and-not-only-the-editor/27222 "2021-05-25T20:48:00Z")
**Posts on this page:** 17
**Page:** 2

<div class="post-metadata">

### Author: ![PabloMFalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/pablomfalero/32/31166_2.png) [@PabloMFalero](https://community.glideapps.com/u/PabloMFalero)
#### Post date: [May 26, 2021, 3:07pm UTC](https://community.glideapps.com/t/being-able-to-add-roles-from-the-app-and-not-only-the-editor/27222/21 "2021-05-26T15:07:47Z")

</div>

> [@Join the Glide team for some live coding!](https://community.glideapps.com/t/join-the-glide-team-for-some-live-coding/27229):
>
> @Jason and I will be doing some live coding on Thursday (May 27) at 1pm Pacific time. We’ll be working on very small issues - fixing papercuts and/or building tiny features. We’d love your input on what we should be working on, and of course we’d love you to come, join us, and see how the sausage is made.

Solving the request I added this Thursday 🙂 Being able to add roles from the app without having to manually enter them in the database

---

<div class="post-metadata">

### Author: ![Joe\_Gabriele](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_gabriele/32/57595_2.png) [@Joe\_Gabriele](https://community.glideapps.com/u/Joe_Gabriele)
#### Post date: [May 26, 2021, 3:41pm UTC](https://community.glideapps.com/t/being-able-to-add-roles-from-the-app-and-not-only-the-editor/27222/22 "2021-05-26T15:41:58Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![PabloMFalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/pablomfalero/32/31166_2.png) [@PabloMFalero](https://community.glideapps.com/u/PabloMFalero)
#### Post date: [May 26, 2021, 3:44pm UTC](https://community.glideapps.com/t/being-able-to-add-roles-from-the-app-and-not-only-the-editor/27222/23 "2021-05-26T15:44:04Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [May 26, 2021, 5:05pm UTC](https://community.glideapps.com/t/being-able-to-add-roles-from-the-app-and-not-only-the-editor/27222/24 "2021-05-26T17:05:53Z")

</div>

> [@Joe\_Gabriele](#):
>
> 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?

yes, except that doesn’t work 🙂

> [@Darren\_Murphy](#):
>
> Okay, this is interesting…
> 
> I have multiple role columns, so I decided to test to see if I could change more than one using Set Columns.  
> I set my app up like this:
> 
> ![Screen Shot 2021-05-26 at 10.10.24 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/e/4e51e1fd057e6907ff69654118fb196b9bad2e3c.png)
> 
> - Both choice components write to separate user specific columns
> - Then on submit, the role columns are updated via a Set Columns action
> - “Primary Role” is written to “Role 1”, and “Secondary Role” is written to “Role 2”
> 
> Results:
> 
> - Via the builder:
> - _Both_ columns are updated
> 
> - Via the app
> - _only_ the Secondary Role (Role 2) is updated
> 
> So… it looks like you can use this method to update roles, as long as it’s not the first column in the array 🤣
> 
> Gonna try now with 3 Role columns and see what happens…
> 
> _UPDATE_  
> Tested with 3 role columns, and result as expected…
> 
> - Via the builder
> - All 3 Role columns updated
> 
> - Via the app
> - Role 1 unchanged, Role 2 & Role 3 updated

---

<div class="post-metadata">

### Author: ![Joe\_Gabriele](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_gabriele/32/57595_2.png) [@Joe\_Gabriele](https://community.glideapps.com/u/Joe_Gabriele)
#### Post date: [May 26, 2021, 5:19pm UTC](https://community.glideapps.com/t/being-able-to-add-roles-from-the-app-and-not-only-the-editor/27222/25 "2021-05-26T17:19:38Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [May 26, 2021, 5:27pm UTC](https://community.glideapps.com/t/being-able-to-add-roles-from-the-app-and-not-only-the-editor/27222/26 "2021-05-26T17:27:27Z")

</div>

mmm, what I’ve been referring to are the [Roles](https://docs.glideapps.com/all/reference/security-and-per-user-data/user-profiles/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.

---

<div class="post-metadata">

### Author: ![Joe\_Gabriele](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_gabriele/32/57595_2.png) [@Joe\_Gabriele](https://community.glideapps.com/u/Joe_Gabriele)
#### Post date: [May 26, 2021, 5:29pm UTC](https://community.glideapps.com/t/being-able-to-add-roles-from-the-app-and-not-only-the-editor/27222/27 "2021-05-26T17:29:26Z")

</div>

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. "

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [May 26, 2021, 5:37pm UTC](https://community.glideapps.com/t/being-able-to-add-roles-from-the-app-and-not-only-the-editor/27222/28 "2021-05-26T17:37:45Z")

</div>

> [@Joe\_Gabriele](#):
>
> 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 😉

---

<div class="post-metadata">

### Author: ![VadymBohdan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vadymbohdan/32/21195_2.png) [@VadymBohdan](https://community.glideapps.com/u/VadymBohdan)
#### Post date: [July 26, 2022, 3:16pm UTC](https://community.glideapps.com/t/being-able-to-add-roles-from-the-app-and-not-only-the-editor/27222/29 "2022-07-26T15:16:20Z")

</div>

I’ll update this question.  
Has anyone found a way to change user roles through the application?

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [July 26, 2022, 3:52pm UTC](https://community.glideapps.com/t/being-able-to-add-roles-from-the-app-and-not-only-the-editor/27222/30 "2022-07-26T15:52:11Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![VadymBohdan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vadymbohdan/32/21195_2.png) [@VadymBohdan](https://community.glideapps.com/u/VadymBohdan)
#### Post date: [July 31, 2022, 9:11am UTC](https://community.glideapps.com/t/being-able-to-add-roles-from-the-app-and-not-only-the-editor/27222/31 "2022-07-31T09:11:51Z")

</div>

Thank you.  
Your answer means that super-admin roles have not yet been invented. 😀

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [July 31, 2022, 9:16am UTC](https://community.glideapps.com/t/being-able-to-add-roles-from-the-app-and-not-only-the-editor/27222/32 "2022-07-31T09:16:20Z")

</div>

> [@VadymBohdan](#):
>
> Has anyone found a way to change user roles through the application?

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.

---

<div class="post-metadata">

### Author: ![NFNHello](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nfnhello/32/3371_2.png) [@NFNHello](https://community.glideapps.com/u/NFNHello)
#### Post date: [July 31, 2022, 11:50am UTC](https://community.glideapps.com/t/being-able-to-add-roles-from-the-app-and-not-only-the-editor/27222/33 "2022-07-31T11:50:08Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [July 31, 2022, 11:51am UTC](https://community.glideapps.com/t/being-able-to-add-roles-from-the-app-and-not-only-the-editor/27222/34 "2022-07-31T11:51:31Z")

</div>

I won’t tell anyone 😉

---

<div class="post-metadata">

### Author: ![NFNHello](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nfnhello/32/3371_2.png) [@NFNHello](https://community.glideapps.com/u/NFNHello)
#### Post date: [July 31, 2022, 11:52am UTC](https://community.glideapps.com/t/being-able-to-add-roles-from-the-app-and-not-only-the-editor/27222/35 "2022-07-31T11:52:10Z")

</div>

Thaaaaaank yooooouuuu! 😉

---

<div class="post-metadata">

### Author: ![VadymBohdan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vadymbohdan/32/21195_2.png) [@VadymBohdan](https://community.glideapps.com/u/VadymBohdan)
#### Post date: [May 25, 2023, 9:30am UTC](https://community.glideapps.com/t/being-able-to-add-roles-from-the-app-and-not-only-the-editor/27222/36 "2023-05-25T09:30:01Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)
#### Post date: [May 25, 2023, 9:36am UTC](https://community.glideapps.com/t/being-able-to-add-roles-from-the-app-and-not-only-the-editor/27222/37 "2023-05-25T09:36:30Z")

</div>

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.

[Previous page](https://community.glideapps.com/t/being-able-to-add-roles-from-the-app-and-not-only-the-editor/27222.md?page=1)
