# Do I need a separate admin app?

**URL:** <https://community.glideapps.com/t/do-i-need-a-separate-admin-app/71277>\
**Category:** Ask for Help\
**Created:** [February 29, 2024, 12:56am UTC](https://community.glideapps.com/t/do-i-need-a-separate-admin-app/71277 "2024-02-29T00:56:27Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![blairrorani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/blairrorani/32/43426_2.png) [@blairrorani](https://community.glideapps.com/u/blairrorani)\
**Post date:** [February 29, 2024, 12:56am UTC](https://community.glideapps.com/t/do-i-need-a-separate-admin-app/71277/1 "2024-02-29T00:56:27Z")

</div>

I have built admin and client apps before.

In client app the user is the row owner.  
In the admin app there is no row owner. This allows admins to view and edit any data because the row owner isn’t preventing the admin’s access to the data.

Is there a way to achieve the same thing in a single app?  
I’ve assumed that row ownership belonging to the user would prevent an admin from seeing all records.

Help appreciated!

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [February 29, 2024, 1:13am UTC](https://community.glideapps.com/t/do-i-need-a-separate-admin-app/71277/2 "2024-02-29T01:13:44Z")

</div>

You can use a roles setup to achieve the same thing inside an app.

> **[Roles | Glide Docs](https://www.glideapps.com/docs/roles)**
>
> Define roles for your users and build different experiences and permissions.

---

<div class="post-metadata">

**Author:** ![blairrorani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/blairrorani/32/43426_2.png) [@blairrorani](https://community.glideapps.com/u/blairrorani)\
**Post date:** [February 29, 2024, 1:16am UTC](https://community.glideapps.com/t/do-i-need-a-separate-admin-app/71277/3 "2024-02-29T01:16:04Z")

</div>

Thanks, yes I’m familiar with that functionality.

How do row owner settings affect that though? If I log in as admin, won’t I just see my own data, and not data from all the users (that I want to see)?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [February 29, 2024, 1:21am UTC](https://community.glideapps.com/t/do-i-need-a-separate-admin-app/71277/4 "2024-02-29T01:21:58Z")

</div>

You can have both row owners and roles setup in tandem.

Say you have a table where you store records that should all be visible to admins, but gated to a specific user based on a rowID.

You can have a rowID to store the ID of the user who needs to see that record, and another column where you just store the string “Admin”, providing that’s the role you set up in the Users table.

---

<div class="post-metadata">

**Author:** ![blairrorani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/blairrorani/32/43426_2.png) [@blairrorani](https://community.glideapps.com/u/blairrorani)\
**Post date:** [February 29, 2024, 1:26am UTC](https://community.glideapps.com/t/do-i-need-a-separate-admin-app/71277/5 "2024-02-29T01:26:39Z")

</div>

K, obviously I need to try it 🙂

So if I log in as _admin_ role I can view data that has a row owner that isn’t me, if I use rowID rather than email?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [February 29, 2024, 1:29am UTC](https://community.glideapps.com/t/do-i-need-a-separate-admin-app/71277/6 "2024-02-29T01:29:00Z")

</div>

Yeah, but on the records table, you should set the “Admin” column to row owner as well (you can set multiple columns as row owner).

---

<div class="post-metadata">

**Author:** ![blairrorani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/blairrorani/32/43426_2.png) [@blairrorani](https://community.glideapps.com/u/blairrorani)\
**Post date:** [February 29, 2024, 1:33am UTC](https://community.glideapps.com/t/do-i-need-a-separate-admin-app/71277/7 "2024-02-29T01:33:40Z")

</div>

I know how to set a row owner, just not 100% sure what you’re suggesting.

Example:  
Workouts table.  
Has a date and a user (logged in user’s email) and a score.  
As the row owner, this user will only be able to create, view and edit their scores even though all users are recording scores.

when admin logs in to same app, they will see their data only (based on my current set up).

**I’m not sure what the “Admin” column will be in my app.**  
Is there a link or screenshot you can share? Sorry to be a pain ☹

---

<div class="post-metadata">

**Author:** ![blairrorani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/blairrorani/32/43426_2.png) [@blairrorani](https://community.glideapps.com/u/blairrorani)\
**Post date:** [February 29, 2024, 1:39am UTC](https://community.glideapps.com/t/do-i-need-a-separate-admin-app/71277/8 "2024-02-29T01:39:39Z")

</div>

Thanks again Thinh 🙂  
I believe you’re referring to the same thing as [this article](https://www.glideapps.com/docs/reference/values/user-profile-columns) (perhaps).

Which I browsed and didn’t 100% understand 😂 😢

---

<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:** [February 29, 2024, 4:14am UTC](https://community.glideapps.com/t/do-i-need-a-separate-admin-app/71277/9 "2024-02-29T04:14:17Z")

</div>

> [@blairrorani](#):
>
> I’m not sure what the “Admin” column will be in my app.

The Admin column is simply a column that is set as a Row Owner column and has the word ‘Admin’ in every row (or whatever word matches what you set as the admin Role in the user table).

---

<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:** [February 29, 2024, 9:18am UTC](https://community.glideapps.com/t/do-i-need-a-separate-admin-app/71277/10 "2024-02-29T09:18:50Z")

</div>

@blairrorani - the below might help. It provides some examples and explains how they work.

> [@Row owners and roles in the same time?](https://community.glideapps.com/t/row-owners-and-roles-in-the-same-time/45691/5):
>
> No, the users being managed wouldn’t have any role at all. They would just have their own email address as an owner row, which means they would only see their own data. Only the Managers would be given the Manager role, and as a Manager would be set as a Row Owner for every user, they would have access to all data. This might be easier to explain with a picture. Consider the following example: In the example above, the first 3 users are Managers. Each…

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [March 7, 2024, 9:18am UTC](https://community.glideapps.com/t/do-i-need-a-separate-admin-app/71277/11 "2024-03-07T09:18:58Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
