Filter users by two criteria

I need to filter fetchUsers by two criteria, now I have such query api/v2/users?include_fields=false&q=app_metadata.data.customer.name%3A${customer}$&search_engine=v2
if I want to add app_metadata.data2.example%3A${customer}$ do I need to make new query or I can somehow combine these into one query?

Hi @DonB,

The queries are just lucene so you can AND and OR subqueries. E.g., app_metadata.roles:customer AND email:*@foo.com:

https://foo.auth0.com/api/v2/users?q=app_metadata.roles%3Acustomer%20AND%20email%3A*%40foo.com&search_engine=v3

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