FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Searching user with multiple application

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    2
    7
    2.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      prawee
      last edited by

      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

      joshuaJ 1 Reply Last reply Reply Quote 0
      • joshuaJ
        joshua @prawee
        last edited by

        @prawee

        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!

        P 1 Reply Last reply Reply Quote 0
        • P
          prawee @joshua
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • joshuaJ
            joshua
            last edited by joshua

            @prawee

            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.
            Screen Shot 2022-10-03 at 2.36.09 PM.png

            P 1 Reply Last reply Reply Quote 0
            • P
              prawee @joshua
              last edited by

              @joshua
              yup. but UI suport 1 time per 1 application only. i want to search more application in same time

              joshuaJ 1 Reply Last reply Reply Quote 0
              • joshuaJ
                joshua @prawee
                last edited by

                @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

                P 1 Reply Last reply Reply Quote 0
                • P
                  prawee @joshua
                  last edited by

                  @joshua okay thank you for reply.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post