• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
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 14 Sept 2022, 20:34

    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

    J 1 Reply Last reply 21 Sept 2022, 00:49 Reply Quote 0
    • J
      joshua @prawee
      last edited by 21 Sept 2022, 00:49

      @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 28 Sept 2022, 11:23 Reply Quote 0
      • P
        prawee @joshua
        last edited by 28 Sept 2022, 11:23

        @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
        • J
          joshua
          last edited by joshua 10 Mar 2022, 20:42 3 Oct 2022, 20:40

          @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 5 Oct 2022, 23:28 Reply Quote 0
          • P
            prawee @joshua
            last edited by 5 Oct 2022, 23:28

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

            J 1 Reply Last reply 12 Oct 2022, 20:08 Reply Quote 0
            • J
              joshua @prawee
              last edited by 12 Oct 2022, 20:08

              @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 3 Nov 2022, 16:07 Reply Quote 0
              • P
                prawee @joshua
                last edited by 3 Nov 2022, 16:07

                @joshua okay thank you for reply.

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