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

    Get Registered Users

    Scheduled Pinned Locked Moved
    Q&A
    0
    3
    469
    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.
    • J
      jacob
      last edited by

      Is there a way to get a list of all users that are registered to a specific application? Preferably without having to get all users and then filtering down the list myself?

      J 1 Reply Last reply Reply Quote 0
      • J
        jacob @jacob
        last edited by

        And yes, I've look over the API documentation (/api/user/search), but either the documentation isn't clear enough or I'm just not understanding it maybe. I do not have Elasticsearch so that option is not available.

        1 Reply Last reply Reply Quote 0
        • danD
          dan
          last edited by

          Ah. If you aren't using elasticsearch then you have limited searching options. The database search engine won't be able to do what you want. Sorry about that!

          One option might be to keep each application's users in a separate tenant, then you can request all the users for that tenant (and by extension the application).

          With elasticsearch, the query you'd run is similar to those documented here. Look for Example JSON for the query parameter to search for users with a specific role but don't limit it to a role. Here's the search docs: https://fusionauth.io/docs/v1/tech/apis/users/#search-for-users (for future folks)

          --
          FusionAuth - Auth for devs, built by devs.
          https://fusionauth.io

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