Searching user with multiple application
-
I have mulitple application on my project then
i want to searching user on some app (is ok)
how to do it if i want to get all users from app1 and app2
thank you
-
For this, I would recommend consulting our Users API or the User interface in the Admin UI.
- https://fusionauth.io/docs/v1/tech/apis/users#search-for-users
- https://fusionauth.io/docs/v1/tech/core-concepts/users#user-search
Let us know if you have any questions after a review!
-
@joshua Thank you for reply and sorry to late
i want to search some keyword on muliple application. such as like this.
{ "bool": { "must": [ { "nested": { "path": "registrations", "query": { "bool": { "must": [ { "match": { "registrations.applicationId": "0367a909-534c-4e45-87d3-11066e9bec30" } } ] } } } }, { "nested": { "path": "registrations", "query": { "bool": { "must": [ { "match": { "registrations.applicationId": "b633a831-50e6-4e83-9811-b4ffc80f5ec7" } } ] } } } }, { "query_string": { "query": "prawee" } } ] } }
i try it. but not working.
-
Not sure on the exact query that you need to run, but you would need to build using the Elastic Query Domain.
We have a few helpers on our admin UI to search by application.
-
@joshua
yup. but UI suport 1 time per 1 application only. i want to search more application in same time -
@prawee Yes, we default to one at a time.
You may be able to search for more using the Query Language that ES uses/enables.
Thanks,
Josh -
@joshua okay thank you for reply.