# Can a role be "read only?"

**URL:** <https://community.glideapps.com/t/can-a-role-be-read-only/24144>\
**Category:** Ask for Help\
**Created:** [March 12, 2021, 2:07am UTC](https://community.glideapps.com/t/can-a-role-be-read-only/24144 "2021-03-12T02:07:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gp9293](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gp9293/32/16743_2.png) [@gp9293](https://community.glideapps.com/u/gp9293)\
**Post date:** [March 12, 2021, 2:07am UTC](https://community.glideapps.com/t/can-a-role-be-read-only/24144/1 "2021-03-12T02:07:37Z")

</div>

Is it possible to set a role to be one that has read-only access to the data? In my use case, the primary user shares his/her information with a second user (essentially allowing the second user to run the app as the second user is tagged as row owner on the primary user’s data). It would be nice to tag the second user as a row owner (done) and also make its role one that is read-only. Any ideas appreciated.

---

<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:** [March 12, 2021, 2:33am UTC](https://community.glideapps.com/t/can-a-role-be-read-only/24144/2 "2021-03-12T02:33:15Z")

</div>

Are you using a Private Pro app?

You could take advantage of the Roles capability.

- Assign your second user a role, let’s call it “Impersonator”
- Then use that to control editing, ie. “allow edit where owner is signed-in user and role is not impersonator”

---

<div class="post-metadata">

**Author:** ![gp9293](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gp9293/32/16743_2.png) [@gp9293](https://community.glideapps.com/u/gp9293)\
**Post date:** [March 12, 2021, 2:49am UTC](https://community.glideapps.com/t/can-a-role-be-read-only/24144/3 "2021-03-12T02:49:18Z")

</div>

Yes, Private Pro. Will try your solution. Thank you

---

<div class="post-metadata">

**Author:** ![gp9293](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gp9293/32/16743_2.png) [@gp9293](https://community.glideapps.com/u/gp9293)\
**Post date:** [March 13, 2021, 9:10pm UTC](https://community.glideapps.com/t/can-a-role-be-read-only/24144/4 "2021-03-13T21:10:26Z")

</div>

Your logic is sound but I am running into a problem with row owners. In the app, the primary user stores personal info (eg, allergies). When a record is created by the primary (eg, a new allergy added), I am making the primary and secondary users row owners.

When the primary wants to share the data with a secondary user, the secondary user should be read-only. I am able to have the secondary user login and see the primary user’s data, but the logic you gave me does not kick the secondary to read only, The app behaves as if the primary is logged in. Any additional thoughts? Thank you for this and all of your previous help with scripts.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [March 13, 2021, 9:22pm UTC](https://community.glideapps.com/t/can-a-role-be-read-only/24144/5 "2021-03-13T21:22:33Z")

</div>

You could use tab visibility to create duplicate tabs that are read only for the second user.

---

<div class="post-metadata">

**Author:** ![gp9293](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gp9293/32/16743_2.png) [@gp9293](https://community.glideapps.com/u/gp9293)\
**Post date:** [March 13, 2021, 9:44pm UTC](https://community.glideapps.com/t/can-a-role-be-read-only/24144/6 "2021-03-13T21:44:06Z")

</div>

Got it to work. Thank you Robert for this and all of the other help you have provided along the way.

I wound up using a combination of the recommendations from Robert and Darren.
