Auth0 Home Blog Docs

GET /api/v2/users :: querying for values in user_metadata




When using the API “GET /api/v2/users” it is not working as expected when using the “q” parameter to specify a Lucene query to select a custom value in “user_metadata”.

Our user_metadata looks like:
{ tier: number, ... }

Some examples that return an empty list when I would expect some users:

curl -H "Authorization: Bearer $AUTH0_TOKEN" "https://$"

curl -H "Authorization: Bearer $AUTH0_TOKEN" "https://$"

Open Question

Is there a limited subset of user_metadata that is available for querying? It’s very unclear why I can reliably query but not a “custom” value like tier


Seems that there are limits to what you can search in user_metadata after all.

Would be nice if the API docs also included the above link.