List or search users API is not providing the expected result

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.

Please help me to resolve this issue.

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, the following query seems to work in my environment:

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}'

Hi @tyf

Thanks for the response.

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

1 Like

That’s great! Thanks for confirming :slight_smile:

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