Using API to poll Active users in tenant

I’m new to Auth0 API and I’m looking for a way that I can get the number of users in my tenant that are “actively logged in” real-time or if I can find some many were last logged in within the past ~1 hour.

Does anyone know if this is possible with the API?

Thank you in advance

Hi @dan688

Welcome to the Auth0 Community!

You can utilize the List or Search User endpoint in the Managment API to ask for the last_login within the last hour.

You can use the q parameter to ask the Auth0 for the list of logged users in the past 1hour.

last_login:["2024-06-14T01:51:00Z" TO *]

https://auth0.com/docs/api/management/v2/users/get-users

Thanks
Dawid

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.