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

Get Registered Users

Scheduled Pinned Locked Moved
Q&A
0
3
474
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 26 Jan 2021, 16:19

    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 26 Jan 2021, 19:01 Reply Quote 0
    • J
      jacob @jacob
      last edited by 26 Jan 2021, 19:01

      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
      • D
        dan
        last edited by 28 Jan 2021, 01:51

        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
        2 out of 3
        • First post
          2/3
          Last post