# Privacy Rules - Perform a search

**URL:** <https://forum.bubble.io/t/privacy-rules-perform-a-search/324161>\
**Category:** Need help\
**Created:** [May 27, 2024, 5:39pm UTC](https://forum.bubble.io/t/privacy-rules-perform-a-search/324161 "2024-05-27T17:39:17Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![miracle](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/miracle/32/148798_2.png) [@miracle](https://forum.bubble.io/u/miracle)\
**Post date:** [May 27, 2024, 5:39pm UTC](https://forum.bubble.io/t/privacy-rules-perform-a-search/324161/1 "2024-05-27T17:39:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ahmed.elkaffas](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ahmed.elkaffas/32/246772_2.png) [@ahmed.elkaffas](https://forum.bubble.io/u/ahmed.elkaffas)\
**Post date:** [May 27, 2024, 5:45pm UTC](https://forum.bubble.io/t/privacy-rules-perform-a-search/324161/2 "2024-05-27T17:45:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![miracle](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/miracle/32/148798_2.png) [@miracle](https://forum.bubble.io/u/miracle)\
**Post date:** [May 27, 2024, 6:02pm UTC](https://forum.bubble.io/t/privacy-rules-perform-a-search/324161/3 "2024-05-27T18:02:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ahmed.elkaffas](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ahmed.elkaffas/32/246772_2.png) [@ahmed.elkaffas](https://forum.bubble.io/u/ahmed.elkaffas)\
**Post date:** [May 27, 2024, 6:10pm UTC](https://forum.bubble.io/t/privacy-rules-perform-a-search/324161/4 "2024-05-27T18:10:26Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![miracle](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/miracle/32/148798_2.png) [@miracle](https://forum.bubble.io/u/miracle)\
**Post date:** [May 27, 2024, 6:20pm UTC](https://forum.bubble.io/t/privacy-rules-perform-a-search/324161/5 "2024-05-27T18:20:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ahmed.elkaffas](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ahmed.elkaffas/32/246772_2.png) [@ahmed.elkaffas](https://forum.bubble.io/u/ahmed.elkaffas)\
**Post date:** [May 27, 2024, 6:32pm UTC](https://forum.bubble.io/t/privacy-rules-perform-a-search/324161/6 "2024-05-27T18:32:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ahmed.elkaffas](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ahmed.elkaffas/32/246772_2.png) [@ahmed.elkaffas](https://forum.bubble.io/u/ahmed.elkaffas)\
**Post date:** [May 27, 2024, 6:39pm UTC](https://forum.bubble.io/t/privacy-rules-perform-a-search/324161/7 "2024-05-27T18:39:22Z")

</div>

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

> [@Advanced Privacy Rules?](https://forum.bubble.io/t/advanced-privacy-rules/208527):
>
> Hello, I’m building an app that includes Projects. I have a permissions model that enables users to either edit, comment, view, or do nothing on a given Project. The way I currently have this implemented is via a Contributor model. A Contributor is a User + a Capability (can edit, can comment, etc.). Projects have a Contributors field, which is a list of Contributor objects. I want to set up privacy rules so that Users who don’t have appropriate permissions for a given Project can’t see any of…

---

<div class="post-metadata">

**Author:** ![miracle](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/miracle/32/148798_2.png) [@miracle](https://forum.bubble.io/u/miracle)\
**Post date:** [May 27, 2024, 9:40pm UTC](https://forum.bubble.io/t/privacy-rules-perform-a-search/324161/8 "2024-05-27T21:40:39Z")

</div>

Thanks for all your help

---

<div class="post-metadata">

**Author:** ![miracle](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/miracle/32/148798_2.png) [@miracle](https://forum.bubble.io/u/miracle)\
**Post date:** [May 27, 2024, 9:41pm UTC](https://forum.bubble.io/t/privacy-rules-perform-a-search/324161/9 "2024-05-27T21:41:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ihsanzainal84](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ihsanzainal84/32/245932_2.png) [@ihsanzainal84](https://forum.bubble.io/u/ihsanzainal84)\
**Post date:** [May 28, 2024, 12:46am UTC](https://forum.bubble.io/t/privacy-rules-perform-a-search/324161/10 "2024-05-28T00:46:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![miracle](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/miracle/32/148798_2.png) [@miracle](https://forum.bubble.io/u/miracle)\
**Post date:** [May 29, 2024, 10:09pm UTC](https://forum.bubble.io/t/privacy-rules-perform-a-search/324161/11 "2024-05-29T22:09:36Z")

</div>

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

---

<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:** [August 5, 2024, 5:40pm UTC](https://forum.bubble.io/t/privacy-rules-perform-a-search/324161/12 "2024-08-05T17:40:13Z")

</div>

Closed on August 5, 2024, 5:40pm UTC

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