# Can we change the privacy of data type to be private unless shared?

**URL:** <https://forum.bubble.io/t/can-we-change-the-privacy-of-data-type-to-be-private-unless-shared/243227>\
**Category:** Database\
**Created:** [January 24, 2023, 6:22pm UTC](https://forum.bubble.io/t/can-we-change-the-privacy-of-data-type-to-be-private-unless-shared/243227 "2023-01-24T18:22:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gifttogether2023](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@gifttogether2023](https://forum.bubble.io/u/gifttogether2023)\
**Post date:** [January 24, 2023, 6:22pm UTC](https://forum.bubble.io/t/can-we-change-the-privacy-of-data-type-to-be-private-unless-shared/243227/1 "2023-01-24T18:22:08Z")

</div>

I am creating a website where users can create campaigns and invite contributors to contribute to the campaign.

I have a ‘campaigns’ data type for this. I would like to set up the privacy rule such that the campaign is not publicly visible unless the campaign host shares the unique campaign link with potential contributors. Bottomline is that only users (logged in or not) who have the campaign link can see it.

Is it possible in bubble? If so, how? Thanks!

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [January 24, 2023, 6:44pm UTC](https://forum.bubble.io/t/can-we-change-the-privacy-of-data-type-to-be-private-unless-shared/243227/2 "2023-01-24T18:44:55Z")

</div>

Hi there, @gifttogether2023… I’m not sure about the not logged in part (that would get tricky, I think), but something you could consider is having a field on the `Campaign` data type (I called the field `contributors` in my example) that stores a list of users with whom the campaign has been shared. With that field in place, you could create the following privacy rules, and you should get the desired result for contributors who are logged in.

 ![privacy](https://us1.discourse-cdn.com/bubble/original/3X/9/0/90c80cd988b914b29eb62fd9f3d9598c8803dac3.png)

Anyway, just food for thought… hope it helps.

Best…  
Mike

---

<div class="post-metadata">

**Author:** ![gifttogether2023](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@gifttogether2023](https://forum.bubble.io/u/gifttogether2023)\
**Post date:** [January 25, 2023, 3:16pm UTC](https://forum.bubble.io/t/can-we-change-the-privacy-of-data-type-to-be-private-unless-shared/243227/3 "2023-01-25T15:16:35Z")

</div>

Thank you so much! I’ll give that a shot.

---

<div class="post-metadata">

**Author:** ![gifttogether2023](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@gifttogether2023](https://forum.bubble.io/u/gifttogether2023)\
**Post date:** [January 25, 2023, 3:56pm UTC](https://forum.bubble.io/t/can-we-change-the-privacy-of-data-type-to-be-private-unless-shared/243227/4 "2023-01-25T15:56:54Z")

</div>

I am trying to create the privacy rule based on the screenshot you posted. However, when trying to create a rule: ‘This Campaign’s Contributors contains Current User’, it asks to add another field of the Current User. And I do not see ‘email’ field in the dropdown (as you can see in the screenshot). What am I missing? User data type has built-in ‘email’ field.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/0/1/0114f896ae8ada60fd45983c440cac9ed11628cb.png)

Thoughts please? Thanks!

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [January 25, 2023, 3:58pm UTC](https://forum.bubble.io/t/can-we-change-the-privacy-of-data-type-to-be-private-unless-shared/243227/5 "2023-01-25T15:58:41Z")

</div>

What is the field type of your `Contributors` field? I’m guessing it’s a text field? If it is, you should delete that field and create another one with a field type of `User` (and still a list, of course).

---

<div class="post-metadata">

**Author:** ![gifttogether2023](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@gifttogether2023](https://forum.bubble.io/u/gifttogether2023)\
**Post date:** [January 25, 2023, 4:15pm UTC](https://forum.bubble.io/t/can-we-change-the-privacy-of-data-type-to-be-private-unless-shared/243227/6 "2023-01-25T16:15:05Z")

</div>

You nailed it! It’s resolved now. Thank you so much!
