# Having components visible only to admin

**URL:** <https://community.glideapps.com/t/having-components-visible-only-to-admin/29528>\
**Category:** Ask for Help\
**Created:** [July 25, 2021, 4:16pm UTC](https://community.glideapps.com/t/having-components-visible-only-to-admin/29528 "2021-07-25T16:16:15Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![nrajesh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nrajesh/32/26699_2.png) [@nrajesh](https://community.glideapps.com/u/nrajesh)\
**Post date:** [July 25, 2021, 4:16pm UTC](https://community.glideapps.com/t/having-components-visible-only-to-admin/29528/1 "2021-07-25T16:16:15Z")

</div>

Hello,

Building an app with the following sections.

- Project tab with multiple projects
- Each project also has a button that sends out an email to the project participants
- This is a Public App Without Email - as we would like anyone to access

But:

- The Button “Send Project Update Email” must only be visible to the admin or a specific user.
- Essentially - a login screen which appears only when clicked on, like any other app/website one is typically used to

Tried the Component Visibility options but that is not applicable in this case.

How to enable this?

thanks  
Raj

---

<div class="post-metadata">

**Author:** ![nrajesh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nrajesh/32/26699_2.png) [@nrajesh](https://community.glideapps.com/u/nrajesh)\
**Post date:** [July 25, 2021, 4:28pm UTC](https://community.glideapps.com/t/having-components-visible-only-to-admin/29528/2 "2021-07-25T16:28:09Z")

</div>

- My bad, I just noticed the SIGN-IN in the ACTION TEXT.
- However, I want the button only to show up after signing in as admin or some specific email

Apologies in advance if this has already been answered elsewhere… 🙏

---

<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:** [July 25, 2021, 4:38pm UTC](https://community.glideapps.com/t/having-components-visible-only-to-admin/29528/3 "2021-07-25T16:38:16Z")

</div>

In your user profile sheet, you’ll need to specify some sort of indicator for admin. It could be a checkbox column (eg isAdmin) or a text column (eg role) where you’re typing in roles and would this type “Admin”. Then, you’ll set a visibility condition on those components where `user >` `isAdmin` is `true` or `user > role` is `Admin`

---

<div class="post-metadata">

**Author:** ![nrajesh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nrajesh/32/26699_2.png) [@nrajesh](https://community.glideapps.com/u/nrajesh)\
**Post date:** [July 25, 2021, 6:30pm UTC](https://community.glideapps.com/t/having-components-visible-only-to-admin/29528/4 "2021-07-25T18:30:32Z")

</div>

But does “Sign In” compare with an entry in user profile?  
Is there a standard template for the user profile sheet?  
Any references would be great. 🙏

---

<div class="post-metadata">

**Author:** ![nrajesh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nrajesh/32/26699_2.png) [@nrajesh](https://community.glideapps.com/u/nrajesh)\
**Post date:** [July 25, 2021, 6:37pm UTC](https://community.glideapps.com/t/having-components-visible-only-to-admin/29528/5 "2021-07-25T18:37:21Z")

</div>

I should be doing a more extensive search first before asking a question… 🙏

let me look into this first…

[![](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/f/faf4c9f395a26207fb46809dfa83dc9f45eb718e.jpeg "User Profiles | Glide Apps Tutorial") ](https://www.youtube.com/watch?v=5lQdJn-bHto)

---

<div class="post-metadata">

**Author:** ![nrajesh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nrajesh/32/26699_2.png) [@nrajesh](https://community.glideapps.com/u/nrajesh)\
**Post date:** [July 25, 2021, 7:30pm UTC](https://community.glideapps.com/t/having-components-visible-only-to-admin/29528/6 "2021-07-25T19:30:06Z")

</div>

OK. I see what you mean. I checked out the User Profiles tutorial but it asks the sign in should be Public with Email. However, we want to make it purely a public and not sure if it works in that mode.

Any help would be great! Thanks! 🙏

---

<div class="post-metadata">

**Author:** ![kingzy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kingzy/32/15690_2.png) [@kingzy](https://community.glideapps.com/u/kingzy)\
**Post date:** [July 25, 2021, 11:32pm UTC](https://community.glideapps.com/t/having-components-visible-only-to-admin/29528/7 "2021-07-25T23:32:07Z")

</div>

You can still make Public app with sign in.

Upon sign in, the admin can view specific content. I’d create a new column call User Type: admin so Visibility / Filters work with this.

---

<div class="post-metadata">

**Author:** ![nrajesh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nrajesh/32/26699_2.png) [@nrajesh](https://community.glideapps.com/u/nrajesh)\
**Post date:** [July 26, 2021, 6:20am UTC](https://community.glideapps.com/t/having-components-visible-only-to-admin/29528/8 "2021-07-26T06:20:30Z")

</div>

This is a little confusing. Which spreadsheet tab? I have created a tab in google sheets called ‘User Profiles’. But if I provide a “Sign In” button which Glide Tab is it supposed to be called from?

Ideally I want to create a Sign In button in the Home tab. But the Home tab contains public information as well. So if I were to provide the ‘sign in’ button what should be its behavior?

---

<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:** [July 26, 2021, 8:06am UTC](https://community.glideapps.com/t/having-components-visible-only-to-admin/29528/9 "2021-07-26T08:06:02Z")

</div>

To make a public app works with a user profiles setup, you first change your app to public with email, assign a sheet to be your user profiles sheet, then switch back to public.

A “Sign in” button does not ask you to point it to a tab, the step above is enough.

---

<div class="post-metadata">

**Author:** ![nrajesh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nrajesh/32/26699_2.png) [@nrajesh](https://community.glideapps.com/u/nrajesh)\
**Post date:** [July 26, 2021, 8:01pm UTC](https://community.glideapps.com/t/having-components-visible-only-to-admin/29528/10 "2021-07-26T20:01:51Z")

</div>

It worked…  
**THANK YOU!!!**

Is this written anywhere in the docs? I obviously missed it. Else, it should be added.  
thanks much!! 🙏 🙂

---

<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:** [July 26, 2021, 11:52pm UTC](https://community.glideapps.com/t/having-components-visible-only-to-admin/29528/11 "2021-07-26T23:52:39Z")

</div>

I’m not sure it was written in the docs, if you have any questions that are not covered in the docs just ask us here.
