# Is there a way to allow a user to show/hide visibility in certain groups?

**URL:** https://community.glideapps.com/t/is-there-a-way-to-allow-a-user-to-show-hide-visibility-in-certain-groups/13588
**Category:** Ask for Help
**Created:** [August 5, 2020, 7:24am UTC](https://community.glideapps.com/t/is-there-a-way-to-allow-a-user-to-show-hide-visibility-in-certain-groups/13588 "2020-08-05T07:24:26Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Angelia\_Baxter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/angelia_baxter/32/789_2.png) [@Angelia\_Baxter](https://community.glideapps.com/u/Angelia_Baxter)
#### Post date: [August 5, 2020, 7:24am UTC](https://community.glideapps.com/t/is-there-a-way-to-allow-a-user-to-show-hide-visibility-in-certain-groups/13588/1 "2020-08-05T07:24:26Z")

</div>

Hi,  
I am working on a community and I want them to be able to control visibility in certain categories. For example:  
I’m a person in Texas. I am available to connect. I want to be able to have the following scenarios:

1. I only want people who are also in Texas (that group or category) to see I’m from Texas
2. I don’t want anyone to know I’m from Texas (but I still want that attribute attached to me in case people are posting things for people in Texas…so if an opportunity is targeted at people from texas I should still see it)
3. I want everyone to see I’m from Texas

So basically showing/hiding a user attribute and deciding who can see that attribute.

Or conversely, can you do the same with a group, say NY writers, can I make that group only available to members of that group? (hopefully I haven’t asked this last one before)

Thanks!

---

<div class="post-metadata">

### Author: ![adelhammoud](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/adelhammoud/32/5587_2.png) [@adelhammoud](https://community.glideapps.com/u/adelhammoud)
#### Post date: [August 5, 2020, 8:19am UTC](https://community.glideapps.com/t/is-there-a-way-to-allow-a-user-to-show-hide-visibility-in-certain-groups/13588/2 "2020-08-05T08:19:35Z")

</div>

One way of doing so:

- Assuming you can track user’s group (e.g. State) into a variable User\_State,
- Make a relation per group (e.g. State) - let’s call it rel\_State
- Add a “Show” condition in GDE “If rel\_State contains User\_State” =\> TRUE

---

<div class="post-metadata">

### Author: ![Angelia\_Baxter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/angelia_baxter/32/789_2.png) [@Angelia\_Baxter](https://community.glideapps.com/u/Angelia_Baxter)
#### Post date: [August 5, 2020, 8:23am UTC](https://community.glideapps.com/t/is-there-a-way-to-allow-a-user-to-show-hide-visibility-in-certain-groups/13588/3 "2020-08-05T08:23:51Z")

</div>

> [@adelhammoud](#):
>
> Make a relation per group (e.g. State) - let’s call it rel\_State

Thank you, can you have multiple relations?  
For example one user chooses to be visible outside of Texas, another user only wants to be visible in Texas? I’m trying to use this same behavior for private information that people may or may not want to share for example, Diabetes. They may want to list themselves with this condition for everyone to see or only people who have it in common. Can you use the same switch for this or would I create perhaps 2 options. Show to same and show to all?

---

<div class="post-metadata">

### Author: ![adelhammoud](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/adelhammoud/32/5587_2.png) [@adelhammoud](https://community.glideapps.com/u/adelhammoud)
#### Post date: [August 5, 2020, 8:47am UTC](https://community.glideapps.com/t/is-there-a-way-to-allow-a-user-to-show-hide-visibility-in-certain-groups/13588/4 "2020-08-05T08:47:20Z")

</div>

Yes, multiple relation rel\_G1 (group 1) rel\_G2, etc.  
Then you can play with OR/AND  
If rel\_G1 contains User\_Group AND (or) OR rel\_G2 contains User\_Group, etc. then Show=TRUE

---

<div class="post-metadata">

### Author: ![Angelia\_Baxter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/angelia_baxter/32/789_2.png) [@Angelia\_Baxter](https://community.glideapps.com/u/Angelia_Baxter)
#### Post date: [August 5, 2020, 8:54am UTC](https://community.glideapps.com/t/is-there-a-way-to-allow-a-user-to-show-hide-visibility-in-certain-groups/13588/5 "2020-08-05T08:54:27Z")

</div>

Thank you!

---

<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: [August 5, 2020, 12:46pm UTC](https://community.glideapps.com/t/is-there-a-way-to-allow-a-user-to-show-hide-visibility-in-certain-groups/13588/6 "2020-08-05T12:46:23Z")

</div>

Assuming this case is where you have a setup that allows other people to have a look at any other people’s profiles, I would have a visibility choice column for users that go with their user profiles sheet. The choices would be:

1 - Partially hide  
2 - Full hide  
3 - Visible

If visibility is partially hide and signed in user’s state is the same as the state in the detailed view, then visible.

If visibility is full hide, hide the info and the opposite for visibility is visible.
