# List or search users API is not providing the expected result

**URL:** <https://community.auth0.com/t/list-or-search-users-api-is-not-providing-the-expected-result/117875>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [October 5, 2023, 10:29am UTC](https://community.auth0.com/t/list-or-search-users-api-is-not-providing-the-expected-result/117875 "2023-10-05T10:29:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![supritha.n](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@supritha.n](https://community.auth0.com/u/supritha.n)\
**Post date:** [October 5, 2023, 10:29am UTC](https://community.auth0.com/t/list-or-search-users-api-is-not-providing-the-expected-result/117875/1 "2023-10-05T10:29:48Z")

</div>

Hi,

I’m trying to list all the users whose email is not verified by using the below query.

But the API is returning all the users.

However, The same query was working couple of weeks back.

 ![non-activated-users](https://global.discourse-cdn.com/auth0/original/3X/1/1/11d6f434d9994a9cac1d8dd35ae1cee1e99c1eb3.png)

Please help me to resolve this issue.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 6, 2023, 12:11am UTC](https://community.auth0.com/t/list-or-search-users-api-is-not-providing-the-expected-result/117875/3 "2023-10-06T00:11:01Z")

</div>

Hey there @supritha.n welcome to the community!

I’m not aware of the search functionality working in the `body` of the request, but rather as `params`. In looking working with the [Management API explorer documentation](https://auth0.com/docs/api/management/v2/users/get-users), the following query seems to work in my environment:

```auto
curl -L 'https://{YOUR_DOMAIN}.us.auth0.com/api/v2/users?fields=email&include_fields=true&q=email_verified%3Afalse' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {YOUR_MANAGEMENT_API_TOKEN}'

```

---

<div class="post-metadata">

**Author:** ![supritha.n](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@supritha.n](https://community.auth0.com/u/supritha.n)\
**Post date:** [October 6, 2023, 7:55am UTC](https://community.auth0.com/t/list-or-search-users-api-is-not-providing-the-expected-result/117875/4 "2023-10-06T07:55:24Z")

</div>

Hi @ty.frith

Thanks for the response.

I was able to resolve the issue by passing the attributes as params in the below manner.

 ![non-activated-users-working-query](https://global.discourse-cdn.com/auth0/original/3X/b/d/bd377a5ca4091cec7acdd4dbcea016f919c81799.png)

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 6, 2023, 9:47pm UTC](https://community.auth0.com/t/list-or-search-users-api-is-not-providing-the-expected-result/117875/5 "2023-10-06T21:47:58Z")

</div>

That’s great! Thanks for confirming 🙂

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 20, 2023, 9:48pm UTC](https://community.auth0.com/t/list-or-search-users-api-is-not-providing-the-expected-result/117875/6 "2023-10-20T21:48:47Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
