FusionAuth Get all users not returning all users
-
I am using the query below to get all users. In the fusion auth admin dashboard there are 29 users for that application_id however only 25 users come back. Note: in the response also it says "total: 29" but only 25 users are in the response.
{ "bool" : { "must" : [ { "nested" : { "path" : "registrations", "query" : { "bool" : { "must" : [ { "match" : { "registrations.applicationId" : "<my-app-id>" } } ] } } } } ] } }
I can't really tell what is going on. Only thing I notice is that in the admin dashboard the paging shows 25 users per page, but I don't think this has to do with the problem?
-
We are updating our documenation to highlight a key difference here.
You will want to make sure that you have adjusted
numberOfResults
value, which in this case is likely defaulting to 25.It is best to keep a small "results window" but then loop through the results with an increasing startRow value.
I hope this helps
Thanks,
Josh -
@joshua Thank you for updating the docs. I can confirm simply increasing the
numberOfResults
indeed returns the rest of the users!