# Search users with + sign in e-mail addess via mgmt api and getall()

**URL:** <https://community.auth0.com/t/search-users-with-sign-in-e-mail-addess-via-mgmt-api-and-getall/61550>\
**Category:** Get Help\
**Created:** [April 22, 2021, 10:18am UTC](https://community.auth0.com/t/search-users-with-sign-in-e-mail-addess-via-mgmt-api-and-getall/61550 "2021-04-22T10:18:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabian1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fabian1/32/13074_2.png) [@fabian1](https://community.auth0.com/u/fabian1)\
**Post date:** [April 22, 2021, 10:18am UTC](https://community.auth0.com/t/search-users-with-sign-in-e-mail-addess-via-mgmt-api-and-getall/61550/1 "2021-04-22T10:18:14Z")

</div>

Searching for user+foo@domain.tld via the Management interface ([manage.auth0.com](http://manage.auth0.com)) finds the user if it exists.

Searching for it via the Mgmt API / search function users-\>getall() and q=user+foo@domain.tld, the user is not found.

What is the general advise to find the user in this case?

---

<div class="post-metadata">

**Author:** ![fabian1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fabian1/32/13074_2.png) [@fabian1](https://community.auth0.com/u/fabian1)\
**Post date:** [April 22, 2021, 10:28am UTC](https://community.auth0.com/t/search-users-with-sign-in-e-mail-addess-via-mgmt-api-and-getall/61550/2 "2021-04-22T10:28:22Z")

</div>

I found the email andpoints, but that is also not working:

Client error: `GET https://site.eu.auth0.com/api/v2/users-by-email?email=fabian+foobar@domain.tld` resulted in a `400 Bad Request` response:  
{“statusCode”:400,“error”:“Bad Request”,“message”:"Query validation error: 'Object didn’t pass validation for format ema (truncated…)

---

<div class="post-metadata">

**Author:** ![fabian1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fabian1/32/13074_2.png) [@fabian1](https://community.auth0.com/u/fabian1)\
**Post date:** [April 22, 2021, 11:15am UTC](https://community.auth0.com/t/search-users-with-sign-in-e-mail-addess-via-mgmt-api-and-getall/61550/3 "2021-04-22T11:15:20Z")

</div>

I figured it out: The PHP SDK is just not encoding the query string properly. If I encode the plus sign to %2b, I can find the e-mail.

Will this fixed within the SDK eventually?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 22, 2021, 2:40pm UTC](https://community.auth0.com/t/search-users-with-sign-in-e-mail-addess-via-mgmt-api-and-getall/61550/4 "2021-04-22T14:40:24Z")

</div>

Glad you figured it out and thanks for sharing with the rest of community!

It will be best if you can relay that directly to PHP SDK repo maintainers directly through a GitHub issue so it can be addressed in the SDK eventually.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 29, 2021, 12:44pm UTC](https://community.auth0.com/t/search-users-with-sign-in-e-mail-addess-via-mgmt-api-and-getall/61550/5 "2021-04-29T12:44:32Z")

</div>


