How can I get all users active in the last three months?
-
How can I get ids of all users active in the last three months? I see that search has a limit of 10k users (see https://github.com/FusionAuth/fusionauth-issues/issues/494 )
-
To get User Ids, you’d want to use the Search API, and make requests in smaller windows to keep under 10k and than add the results. For example, you could request all users with a username starting with
a
, and thenb
, and so on. Definitely recommend scripting this.As long as you have enough RAM for ElasticSearch, 10k for
numberOfResults
should be just fine. You’ll just need to make sure your query is narrow enough such that thetotalNumberOfResults
that comes back from FusionAuth is below 10k, otherwise you won’t know for sure if you received an exhaustive result set from your query.We will be enhancing the Search API shortly to work around this Elasticsearch limitation (github issue).