# Confused about Roles and Owners

**URL:** https://community.glideapps.com/t/confused-about-roles-and-owners/47397
**Category:** Ask for Help
**Created:** [August 21, 2022, 8:01pm UTC](https://community.glideapps.com/t/confused-about-roles-and-owners/47397 "2022-08-21T20:01:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Tom\_Collopy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tom_collopy/32/45350_2.png) [@Tom\_Collopy](https://community.glideapps.com/u/Tom_Collopy)
#### Post date: [August 21, 2022, 8:01pm UTC](https://community.glideapps.com/t/confused-about-roles-and-owners/47397/1 "2022-08-21T20:01:51Z")

</div>

I’m not sure I am using Role based security correctly. I’ve read all the documentation from Glide and I’ve read a lot of posts on role based security but I want to make sure I’m doing it correctly.

- I have a user profiles table that has: email, name, roles array
- I have an input form that collects data
- I have a row owners array in the table that contains the form data
- I am using VALUES FROM USER PROFILE Role Array columns to assign roles to the Owner Array Columns in the table for the data
- Am I doing this correctly?
- What happens when I create a new Role that needs to be able to access existing data that does not include that Role as an owner?

I have looked at this post but it’s not clear whether that table is the user profile table or the data table: [Row owners and roles in the same time? - #5 by Darren\_Murphy](https://community.glideapps.com/t/row-owners-and-roles-in-the-same-time/45691/5)

Thanks!

---

<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: [August 22, 2022, 1:20am UTC](https://community.glideapps.com/t/confused-about-roles-and-owners/47397/2 "2022-08-22T01:20:20Z")

</div>

> [@Tom\_Collopy](#):
>
> - I am using VALUES FROM USER PROFILE Role Array columns to assign roles to the Owner Array Columns in the table for the data
> - Am I doing this correctly?

Yes, that sounds right. When you say Owner Array columns, do you mean your data comes from an attached Google Sheet with columns named like Owner 1, Owner 2, etc?  
If that’s the case, then that’s fine. Just so long as you aren’t trying to use computed columns as Row Owners. (Glide wouldn’t let you do that, anyway).

> [@Tom\_Collopy](#):
>
> What happens when I create a new Role that needs to be able to access existing data that does not include that Role as an owner?

You would need to add another Owner column to your data table, and fill it with that role name.

> [@Tom\_Collopy](#):
>
> I have looked at this post but it’s not clear whether that table is the user profile table or the data table: [Row owners and roles in the same time? - #5 by Darren\_Murphy](https://community.glideapps.com/t/row-owners-and-roles-in-the-same-time/45691/5)

Yes, that’s a User Profile table. Roles are only ever assigned in a User Profiles table.

If you still have doubts about your setup, post a couple of screen shots (of your User Profiles and Data tables) and we should be able to tell by looking at them if you have it setup correctly.
