Repeating group / Privacy rules ("Find this in searches")

In the app, I have a repeating group with colleagues (Users).

Under Privacy Rules, User, I have two categories: 1) colleagues, when “Current User is logged in and This User’s Company is Current User’s Company”, with “Find this in searches” checked; and 2) non-colleagues, when “Current User is logged in and This User’s Company is not Current User’s Company”, with “Find this in searches” unchecked.

When the page with the repeating group is loaded, is it correct to assume that the server sends only colleagues to the page? I’m trying to avoid the entire database of users being loaded to the page.

Privacy rules with find this in searches basically control what Bubble’s server is allowed to return when a search runs. So if you’ve set up your User privacy rules so that only colleagues meet the condition with “find in searches” checked, then when your repeating group does a search for Users, Bubble only returns colleagues. This would be different if you were using a filter in your repeating groups data source.

It doesn’t first load the whole database of Users and then filter on the client … the filtering happens on the server before the data is sent down.

1 Like

Ok, this is perfect, thank you!!

And you may have given me very good news :slight_smile: Can I ask a question about :filtered?

I have a specific repeating group with :filtered function, which includes sensitive data.

The set up on the page is: the repeating group and its group is not visible on page load; page has multiple dropdown elements; users select options in dropdown elements and then click button “Search”; when “Search” is clicked, a workflow shows the group that includes the repeating group.

The data source in the repeating group is set up in the Conditional, when the group (above RG) is visible. Data source is Do a search for with :filtered.

I’m hoping that both (Do a search for + :filtered) are done on the server side, because data (hopefully) isn’t loaded on the page until the group with the RG becames visible. Is this correct? Or is it possible that data is loading gradually, as and when users select each dropdown element on the page?