Can I query a user on their user data?
Hi, are there any examples of how to query users based on user data?
You can experiment in the admin UI using the search field.
You can use the query string DSL or a full JSON query in the search field, if you are running elastic search.
Here's a link to building an ElasticSearch query (in version 6.3): https://www.elastic.co/guide/en/elasticsearch/reference/6.3/query-dsl-query-string-query.html
For example if you have companyName in custom data, the query string would be
If you are using the database search, you won't be able to use this kind of querying.
Here's more on the difference between the database search and elasticsearch options for user search: https://fusionauth.io/docs/v1/tech/core-concepts/users#user-search
@dan I have really same query can you find some way.
This guide might be helpful to you: https://fusionauth.io/docs/v1/tech/guides/user-search-with-elasticsearch