# Using API to poll Active users in tenant

**URL:** <https://community.auth0.com/t/using-api-to-poll-active-users-in-tenant/136414>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [June 14, 2024, 11:40pm UTC](https://community.auth0.com/t/using-api-to-poll-active-users-in-tenant/136414 "2024-06-14T23:40:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dan688](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan688/32/53770_2.png) [@dan688](https://community.auth0.com/u/dan688)\
**Post date:** [June 14, 2024, 11:40pm UTC](https://community.auth0.com/t/using-api-to-poll-active-users-in-tenant/136414/1 "2024-06-14T23:40:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [June 15, 2024, 12:56am UTC](https://community.auth0.com/t/using-api-to-poll-active-users-in-tenant/136414/3 "2024-06-15T00:56:06Z")

</div>

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.

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

```

[https://auth0.com/docs/api/management/v2/users/get-users](https://auth0.com/docs/api/management/v2/users/get-users)

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [June 29, 2024, 12:56am UTC](https://community.auth0.com/t/using-api-to-poll-active-users-in-tenant/136414/4 "2024-06-29T00:56:42Z")

</div>

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