# Repeating group privacy

**URL:** <https://forum.bubble.io/t/repeating-group-privacy/139997>\
**Category:** Need help\
**Created:** [March 8, 2021, 2:57am UTC](https://forum.bubble.io/t/repeating-group-privacy/139997 "2021-03-08T02:57:08Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![hacker](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/hacker/32/88281_2.png) [@hacker](https://forum.bubble.io/u/hacker)\
**Post date:** [March 8, 2021, 2:57am UTC](https://forum.bubble.io/t/repeating-group-privacy/139997/1 "2021-03-08T02:57:08Z")

</div>

Hey,

I have a RG in my app that searches all users and returns only the fields that are checked in the privacy settings. Fo example, name and email are checked for everyone to view. In the RG I only display the name of the user.

Can someone access the email even if it´s not displayed (but checked for everyone to view)?  
Can someone do this with the inspect tool in the browser? If yes, how?

Thanks in advance 🙂 💻

---

<div class="post-metadata">

**Author:** ![ed727](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ed727/32/71942_2.png) [@ed727](https://forum.bubble.io/u/ed727)\
**Post date:** [March 8, 2021, 3:41pm UTC](https://forum.bubble.io/t/repeating-group-privacy/139997/2 "2021-03-08T15:41:32Z")

</div>

Per Bubble’s manual, yes. See first paragraph:

[https://manual.bubble.io/help-guides/working-with-data/protecting-data](https://manual.bubble.io/help-guides/working-with-data/protecting-data)

You should uncheck the email and set up a condition so that only an admin can view it, or a person can view only their email.

---

<div class="post-metadata">

**Author:** ![hacker](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/hacker/32/88281_2.png) [@hacker](https://forum.bubble.io/u/hacker)\
**Post date:** [March 8, 2021, 6:41pm UTC](https://forum.bubble.io/t/repeating-group-privacy/139997/3 "2021-03-08T18:41:31Z")

</div>

The thing is that I need the RG to be filtered by email´s confirmed = yes, so the email must be checked for everyone to view (the RG is public).

But I don´t want to make it easy for someone to download user´s email (even if the email is not displayed).

---

<div class="post-metadata">

**Author:** ![ed727](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ed727/32/71942_2.png) [@ed727](https://forum.bubble.io/u/ed727)\
**Post date:** [March 8, 2021, 8:15pm UTC](https://forum.bubble.io/t/repeating-group-privacy/139997/4 "2021-03-08T20:15:16Z")

</div>

I believe email is a separate field from email confirmed (the latter isn’t a field you can see in the data tab, but I’ve always considered it as a field since it holds a value and you can access it in the editor). So try unchecking the email field in privacy and see if your search constraint still works.

PS: on privacy generally, if you are holding data that needs to remain private, it’s good practice to run your privacy setup and goals past Bubble support.

---

<div class="post-metadata">

**Author:** ![hacker](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/hacker/32/88281_2.png) [@hacker](https://forum.bubble.io/u/hacker)\
**Post date:** [March 8, 2021, 8:24pm UTC](https://forum.bubble.io/t/repeating-group-privacy/139997/5 "2021-03-08T20:24:22Z")

</div>

Nope, it’s the same field.

I tried checking email, and the filter wasn’t working until I checked the email again.

But my question is, can someone (a hacker) download all user´s emails from the RG in the browser?

---

<div class="post-metadata">

**Author:** ![ed727](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ed727/32/71942_2.png) [@ed727](https://forum.bubble.io/u/ed727)\
**Post date:** [March 8, 2021, 8:43pm UTC](https://forum.bubble.io/t/repeating-group-privacy/139997/6 "2021-03-08T20:43:35Z")

</div>

Just tried it on my end and it worked. I had every field unchecked, but I did have “Find this in searches” checked.

On your question, I don’t know exactly how, but given what Bubble has said about this, I assume a hacker could create a call to the database similar to how a RG calls data from the database. Since privacy rules are checked server side, Bubble would refuse to return data unless the condition was met.

Had another idea hit me – you could use a privacy rule to only show users where email confirmed = yes. That way you wouldn’t even need to use a filter.

---

<div class="post-metadata">

**Author:** ![hacker](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/hacker/32/88281_2.png) [@hacker](https://forum.bubble.io/u/hacker)\
**Post date:** [March 8, 2021, 10:26pm UTC](https://forum.bubble.io/t/repeating-group-privacy/139997/7 "2021-03-08T22:26:58Z")

</div>

> [@ed727](#):
>
> Just tried it on my end and it worked. I had every field unchecked, but I did have “Find this in searches” checked.

I had the “email” field unchecked and "Find this in searches” checked, but didn’t worked. Weird

> [@ed727](#):
>
> Had another idea hit me – you could use a privacy rule to only show users where email confirmed = yes. That way you wouldn’t even need to use a filter.

Can you please explain a little more?  
Thanks

---

<div class="post-metadata">

**Author:** ![ed727](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ed727/32/71942_2.png) [@ed727](https://forum.bubble.io/u/ed727)\
**Post date:** [March 9, 2021, 2:57am UTC](https://forum.bubble.io/t/repeating-group-privacy/139997/8 "2021-03-09T02:57:42Z")

</div>

I did some more testing on this. I made a mistake in saying I got it to work, because in the quick test data I put together, the signed in user was the one who had email confirmed = yes, so Bubble was letting the RG access the signed in user’s own data despite the privacy settings.

You may already know the below, but what I learned in testing was…

- The “email confirmed” field is not connected to any specific choice in the privacy checkboxes for User datatype. If you allow access to view all fields, then you can access it and use it in a search :filter. But the moment you unclick “View all fields” in privacy settings, “email confirmed” is unselected. So it’s all or nothing. Selecting the email as a viewable field doesn’t do anything.

- You can only access the “email confirmed” field via a :filter or when executing a “current user” type function. You cannot access the “email confirmed” field in the privacy constraints box. (If you could, you could say something like “When This User’s email confirmed = yes” and then deselect anything below you wanted hidden. Bubble would then only send through the “yes” to the page and block anything else.)

Maybe you could create a new yes/no field for email confirmed (call it email confirmed manual) and you’d be able to access that field in searches, privacy settings, etc. Trick would be how to trigger that to change to a “yes” when the user confirms their email. You could create a workflow on a page load, or a “when” workflow on the email confirm page that checks if the user’s email confirmed = yes, and if it is, then set the workflow to change the email confirmed manual = yes. Having such a field then gives you a ton more flexibility. And you could avoid having to use a :filter which is slow for large data sets.

---

<div class="post-metadata">

**Author:** ![hacker](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/hacker/32/88281_2.png) [@hacker](https://forum.bubble.io/u/hacker)\
**Post date:** [March 9, 2021, 4:20am UTC](https://forum.bubble.io/t/repeating-group-privacy/139997/9 "2021-03-09T04:20:56Z")

</div>

> [@ed727](#):
>
> Bubble was letting the RG access the signed in user’s own data despite the privacy settings.

Ohh, yeah, that happened to me too.

> [@ed727](#):
>
> The “email confirmed” field is not connected to any specific choice in the privacy checkboxes for User datatype.

It´s only connected to the “email” field

> [@ed727](#):
>
> You cannot access the “email confirmed” field in the privacy constraints box.

This should be possible. @Bubble

> [@ed727](#):
>
> Maybe you could create a new yes/no field for email confirmed (call it email confirmed manual) and you’d be able to access that field in searches, privacy settings, etc.

Yeah, the @Bubble suggested be the same thing, but having a field just for that, and it´s not a very big deal in my app, seems a bit too much. But yes.

> [@ed727](#):
>
> And you could avoid having to use a :filter which is slow for large data sets.

Yes, I can be faster. “large data sets” can be 1,000, 10,000 or 100,000?

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [May 17, 2021, 2:57am UTC](https://forum.bubble.io/t/repeating-group-privacy/139997/10 "2021-05-17T02:57:19Z")

</div>

Closed on May 17, 2021, 2:57am UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
