Privacy Rules - Perform a search

Hi, I am setting up privacy rule for the first time and noticed i am only limited to this two options

  • This [Data type}
  • Current User
    I want to be able to do things like “Do a search for” as part of the logic on this privacy rule.

P.S: What i am searching for is not related to the data type in which i am setting the privacy rule on. Simple search to know if that other statement is true, then all access to this data type

How can i do this?
Thanks in advance

There is no way to perform a “Do a search for” in privacy rules, however, if you share more info, we might be able to help you correctly set your privacy rule

My app is built for companies, and each company has staffs and these staffs are grouped in departments. I have a data type called permissions that is connected to the department data type.

The logic i want is to give access to who has permissions in that department.

And why cant we search on privacy rules btw

1 - Can I assume that you have a field called “StaffList” in your “Department” table and that the permissions in your “Permissions” table is an “Option Set” where you define what level of permissions given for this department. If not, please explain otherwise.

2 - On which data type would like to add your privacy rule ?

  1. Yes i have a List called Staff List. This has field called Company to indicate who that staff works for.
    I chose not to use option set for the permission because, i need companies to be able to manage this them selves.
  2. There are several data types like, Company Finaces, Customers, etc

Can you give me a read only access to your application so that I can better help you create exactly the privacy rule required ?

In the meantime, please take a look at this thread as it might help you find the correct privacy rule configuration.

1 Like

Thanks for all your help

But why are we unable to “Do a search for” on Privacy rules

It looks like you should be going through Bubble basics. Go through the manual or Bubble’s YouTube channel.

Both are being curated by some of the best Bubble coaches, appointed by Bubble.

Hi, i am not actually a beginner with Bubble. But on privacy Rules, i am. I just cant seem to understand why Do a Search is not an option on Privacy Rules. Can someone please explain why

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