Auth0 Home Blog Docs

App metadata not searching in array fields

management-api

#1

I have this structure on app_metadata field for one of my users
{ "serviceProviderNumbers": [ "23049" ] }
But when I try hit the endpoint with this query
https://vixxo-dev.auth0.com/api/v2/users?q=app_metadata.serviceProviderNumbers:23049&search_engine=v3 the json response body is an empty array

The documentation says that it is possible to search within root objects inside metadata fields

What am I missing??


#2

:wave: @luisguerra I get the same results when I run that query, but when I run /api/v2/users?q=app_metadata.serviceProviderNumbers%3A%2223049%22&search_engine=v3 I am able to retrieve the user. Can you try including quotations, 23049 to "23049", and let me know if that works for you?


#3

It works now :slight_smile: my guess is that it was fixed by https://status.auth0.com/incidents/vr4gczbcxhgd