# I cannot search for user

**URL:** <https://forum.bubble.io/t/i-cannot-search-for-user/222337>\
**Category:** Database\
**Created:** [August 30, 2022, 3:51pm UTC](https://forum.bubble.io/t/i-cannot-search-for-user/222337 "2022-08-30T15:51:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![phoenixideas3](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/phoenixideas3/32/142293_2.png) [@phoenixideas3](https://forum.bubble.io/u/phoenixideas3)\
**Post date:** [August 30, 2022, 3:51pm UTC](https://forum.bubble.io/t/i-cannot-search-for-user/222337/1 "2022-08-30T15:51:53Z")

</div>

I have a datatype called Customers and it holds all approved and unapproved customers of all stores in my application, I want the cashier to be able to look up users by their phone numbers, I’ve been able to make it so that cashier can look up users of their store by their account number which is in the Customers data type, but for the life of me, I can’t seem to get the search box to let the cashier look up users of their store by their phone number

This is the customer datatype:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/6/e/6e36ab574253cfed948e2da5fe7e5bd1d54e28a8.png)

of course, the data in the customer’s data type is feeding from the Users data type

I have removed all privacy rules just to see if it will work, but it’s not working

---

<div class="post-metadata">

**Author:** ![aestela](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/aestela/32/140161_2.png) [@aestela](https://forum.bubble.io/u/aestela)\
**Post date:** [August 30, 2022, 4:04pm UTC](https://forum.bubble.io/t/i-cannot-search-for-user/222337/2 "2022-08-30T16:04:40Z")

</div>

Hi @phoenixideas3 I looked at the video and on the data types, the user type says “privacy rules applied”, I’ve found that on newly created bubble apps, all user information is locked to the current user only, could you share a screenshot of the User type privacy rules?

---

<div class="post-metadata">

**Author:** ![phoenixideas3](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/phoenixideas3/32/142293_2.png) [@phoenixideas3](https://forum.bubble.io/u/phoenixideas3)\
**Post date:** [August 30, 2022, 4:38pm UTC](https://forum.bubble.io/t/i-cannot-search-for-user/222337/3 "2022-08-30T16:38:47Z")

</div>

This is for user type

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

This is for customers:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/9/5910234180790d97fe1f1cf432e85c3f7441d067.png)

---

<div class="post-metadata">

**Author:** ![aestela](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/aestela/32/140161_2.png) [@aestela](https://forum.bubble.io/u/aestela)\
**Post date:** [August 30, 2022, 4:44pm UTC](https://forum.bubble.io/t/i-cannot-search-for-user/222337/4 "2022-08-30T16:44:37Z")

</div>

Have you tried activating “Everyone else (default permissions)” view all fields and find in searches? Just to rule out it’s not an apps problem but a roles problem?

The actual problem might be related to the “Cashier” role, are roles set from an “option set”? I don’t see them as a Data Type.

---

<div class="post-metadata">

**Author:** ![phoenixideas3](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/phoenixideas3/32/142293_2.png) [@phoenixideas3](https://forum.bubble.io/u/phoenixideas3)\
**Post date:** [August 30, 2022, 4:49pm UTC](https://forum.bubble.io/t/i-cannot-search-for-user/222337/5 "2022-08-30T16:49:46Z")

</div>

Yes I tried it and its the same thing

Roles are set from an option set

Also, when I search for users, that works, I;m able to search for their phone number, but the problem is when I try to search for customers, I’m not able to access their phone number

---

<div class="post-metadata">

**Author:** ![phoenixideas3](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/phoenixideas3/32/142293_2.png) [@phoenixideas3](https://forum.bubble.io/u/phoenixideas3)\
**Post date:** [August 30, 2022, 5:28pm UTC](https://forum.bubble.io/t/i-cannot-search-for-user/222337/6 "2022-08-30T17:28:42Z")

</div>

@aestela Hey man, I fixed it, turns out I had to add a isApproved field to the user datatype

Thanks for your help
