I am trying to find a way to search users using certain values in the metadata fields. From what I have read and understood so far, the query string for searching for any field should be something like app_metadata.<property name>:<search value>
. But when I run this query in the API explorer, I get an empty response:
Here’s the response for reference:
Query string: app_metadata.sa-user-id:1234
Here, sa-user-id is a custom field in app metadata with a string value 1234.
Response:
{
"start": 0,
"limit": 20,
"length": 0,
"users": [],
"total": 0
}
I have checked and rechecked and the values I have passed and the field and property names are correct, but I still get an empty response.
I have refered to the following resources:
But none of these are helpful as to what the correct syntax is or why the response is blank.
If I am doing something wrong, can someone please let me know what’s the correct way to search metadata fields?