# How to limit access to data?

**URL:** https://community.glideapps.com/t/how-to-limit-access-to-data/56957
**Category:** Ask for Help
**Created:** [January 21, 2023, 11:28am UTC](https://community.glideapps.com/t/how-to-limit-access-to-data/56957 "2023-01-21T11:28:51Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Simon\_Marence](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/simon_marence/32/51355_2.png) [@Simon\_Marence](https://community.glideapps.com/u/Simon_Marence)
#### Post date: [January 21, 2023, 11:28am UTC](https://community.glideapps.com/t/how-to-limit-access-to-data/56957/1 "2023-01-21T11:28:51Z")

</div>

Hello!

I would like to make a restaurant listing app. I am interested in how to make a database so that each restaurant can edit its own data and does not have access to the data of other restaurants.

Thank you!

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [January 21, 2023, 11:29am UTC](https://community.glideapps.com/t/how-to-limit-access-to-data/56957/2 "2023-01-21T11:29:54Z")

</div>

row owner, role, or filters

---

<div class="post-metadata">

### Author: ![Simon\_Marence](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/simon_marence/32/51355_2.png) [@Simon\_Marence](https://community.glideapps.com/u/Simon_Marence)
#### Post date: [January 21, 2023, 11:33am UTC](https://community.glideapps.com/t/how-to-limit-access-to-data/56957/3 "2023-01-21T11:33:02Z")

</div>

How do I determine who is the row owner?

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [January 21, 2023, 11:33am UTC](https://community.glideapps.com/t/how-to-limit-access-to-data/56957/4 "2023-01-21T11:33:31Z")

</div>

by user email address

---

<div class="post-metadata">

### Author: ![Simon\_Marence](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/simon_marence/32/51355_2.png) [@Simon\_Marence](https://community.glideapps.com/u/Simon_Marence)
#### Post date: [January 21, 2023, 11:34am UTC](https://community.glideapps.com/t/how-to-limit-access-to-data/56957/5 "2023-01-21T11:34:46Z")

</div>

OK, thanks! I will try, should the database be made in glide or in google sheets?

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [January 21, 2023, 11:35am UTC](https://community.glideapps.com/t/how-to-limit-access-to-data/56957/6 "2023-01-21T11:35:41Z")

</div>

always go with google sheets… the most reliable service in the World… plus you can do real magic with sheets formulas and scripts.

---

<div class="post-metadata">

### Author: ![Simon\_Marence](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/simon_marence/32/51355_2.png) [@Simon\_Marence](https://community.glideapps.com/u/Simon_Marence)
#### Post date: [January 21, 2023, 11:39am UTC](https://community.glideapps.com/t/how-to-limit-access-to-data/56957/7 "2023-01-21T11:39:18Z")

</div>

Can you please describe to me how to make each restaurant see only its data? Then the restaurant enters the data in the app or in a Google Sheet?

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [January 21, 2023, 11:40am UTC](https://community.glideapps.com/t/how-to-limit-access-to-data/56957/8 "2023-01-21T11:40:22Z")

</div>

assign the owner’s email to each restaurant… but there is a bad side to this method… that’s why I’m not a big fan of the row owner function… it blocks the whole row. So you gonna have to recreate accessible info in some other sheet.

---

<div class="post-metadata">

### Author: ![Simon\_Marence](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/simon_marence/32/51355_2.png) [@Simon\_Marence](https://community.glideapps.com/u/Simon_Marence)
#### Post date: [January 21, 2023, 11:44am UTC](https://community.glideapps.com/t/how-to-limit-access-to-data/56957/9 "2023-01-21T11:44:28Z")

</div>

Which method do you recommend? And how do I do that?

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [January 21, 2023, 11:46am UTC](https://community.glideapps.com/t/how-to-limit-access-to-data/56957/10 "2023-01-21T11:46:22Z")

</div>

hmm… I have a very unique and complicated method… LOL

> **[External Data Source](https://external-data-1.glide.page/)**
>
> Multi Spreadsheets Data source for Glide Pages with Stripe and PayPal integrations, Address Picker, Custom Emails, PDF Invoice Creator. Unlimited rows and updates.

---

<div class="post-metadata">

### Author: ![Simon\_Marence](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/simon_marence/32/51355_2.png) [@Simon\_Marence](https://community.glideapps.com/u/Simon_Marence)
#### Post date: [January 21, 2023, 11:48am UTC](https://community.glideapps.com/t/how-to-limit-access-to-data/56957/11 "2023-01-21T11:48:43Z")

</div>

It looks complicated 🙂

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [January 21, 2023, 11:53am UTC](https://community.glideapps.com/t/how-to-limit-access-to-data/56957/12 "2023-01-21T11:53:39Z")

</div>

don’t worry… in a few minutes… (or more) some of the big writers, will write a whole manual on how to make your question work using just Glide… i’m out for today 😉

---

<div class="post-metadata">

### Author: ![Simon\_Marence](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/simon_marence/32/51355_2.png) [@Simon\_Marence](https://community.glideapps.com/u/Simon_Marence)
#### Post date: [January 21, 2023, 12:19pm UTC](https://community.glideapps.com/t/how-to-limit-access-to-data/56957/13 "2023-01-21T12:19:14Z")

</div>

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: [January 21, 2023, 4:27pm UTC](https://community.glideapps.com/t/how-to-limit-access-to-data/56957/14 "2023-01-21T16:27:34Z")

</div>

> [@Simon\_Marence](#):
>
> I would like to make a restaurant listing app. I am interested in how to make a database so that each restaurant can edit its own data and does not have access to the data of other restaurants.

If you need this to be secure, then you would need to make use of the [roles](https://www.glideapps.com/docs/reference/security-and-user-data/roles) feature.  
Essentially you would define a role for each restaurant, assign the appropriate role to each user from each restaurant, and then use those roles as row owners.

For example, imagine that you have Restaurant A and Restaurant B. You might define something like role `resta` for Restaurant A and `restb` for Restaurant B. All users that belong to Restaurant A would be given the `resta` role, and all users from Restaurant B would get `restb`.

Then in the table/s that contain the Restaurant data, you would have a row owner column. Data that belongs to Restaurant A would have `resta` in the row owner column, and data that belongs to Restaurant B would have `restb`.

Using this approach, the data for each restaurant would be siloed, and it would not be possible for users from one restaurant to access data from any other restaurant.

It should be noted however, that every user that is assigned a role would be counted as a private user, even if your App allows anyone to sign in.

---

<div class="post-metadata">

### Author: ![Simon\_Marence](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/simon_marence/32/51355_2.png) [@Simon\_Marence](https://community.glideapps.com/u/Simon_Marence)
#### Post date: [January 21, 2023, 5:52pm UTC](https://community.glideapps.com/t/how-to-limit-access-to-data/56957/15 "2023-01-21T17:52:23Z")

</div>

Thank’s!
