Auth0 Home Blog Docs

Uniue login counts per user

user-counts

#1

Hi,

I am trying to find the command to find: A) unique login counts per user and B) total logins over a given time frame (like in the dashboard view).

I have tried: last_login: 2017-04-17 TO 2017-04-24], but this aggregates the users and not the total login counts.

Thanks!
-Ben


#2

You can perform the following query to get specific user events:

user_id:"auth0|123.........."

You can try performing the following to get the specific users who have logged in between the period:

user_id:"auth0|123........." AND last_login: 2017-04-17 TO 2017-04-24]

Search for a range of users in a given timeframe:

user_id:("FIRST_ID" OR "SECOND_ID" OR "THIRD_ID...)

https://auth0.com/docs/api/management/v2/user-search


#3

Thanks.

However I would like to do this for a range of users in the given timeframe, not user by user.

-Ben


#4

See my updated answer above


#5