# How to find out which users are logging into which client/app?

**URL:** <https://community.auth0.com/t/how-to-find-out-which-users-are-logging-into-which-client-app/118345>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [October 11, 2023, 6:09pm UTC](https://community.auth0.com/t/how-to-find-out-which-users-are-logging-into-which-client-app/118345 "2023-10-11T18:09:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sean\_McIlvenna](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sean_mcilvenna/32/6469_2.png) [@Sean\_McIlvenna](https://community.auth0.com/u/Sean_McIlvenna)\
**Post date:** [October 11, 2023, 6:09pm UTC](https://community.auth0.com/t/how-to-find-out-which-users-are-logging-into-which-client-app/118345/1 "2023-10-11T18:09:20Z")

</div>

I have two applications/clients in my [auth0.com](http://auth0.com) tenant. How do I see which users are logging into which application?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 12, 2023, 12:03am UTC](https://community.auth0.com/t/how-to-find-out-which-users-are-logging-into-which-client-app/118345/2 "2023-10-12T00:03:01Z")

</div>

Hey @Sean_McIlvenna !

> [@Sean\_McIlvenna](#):
>
> How do I see which users are logging into which application?

Are you looking for more from a logging/visibility approach? If so, you can search logs in your dashboard (monitoring → logs) using the [Log Search Query Syntax](https://auth0.com/docs/deploy-monitor/logs/log-search-query-syntax) which may look like:

```auto
type: "s" AND client_id: YOUR_CLIENT_ID

```

OR using the [Management API](https://auth0.com/docs/api/management/v2/logs/get-logs) :

```auto
GET /api/v2/logs?q=type:"s" AND client_id:YOUR_CLIENT_ID&per_page=20&page=0
Authorization: Bearer YOUR_ACCESS_TOKEN

```

---

<div class="post-metadata">

**Author:** ![Sean\_McIlvenna](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sean_mcilvenna/32/6469_2.png) [@Sean\_McIlvenna](https://community.auth0.com/u/Sean_McIlvenna)\
**Post date:** [October 12, 2023, 1:08am UTC](https://community.auth0.com/t/how-to-find-out-which-users-are-logging-into-which-client-app/118345/4 "2023-10-12T01:08:59Z")

</div>

Yah, but the logs only seem to go back 3 days. Guessing I have to be on a paid plan to see more logs…

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 12, 2023, 7:17pm UTC](https://community.auth0.com/t/how-to-find-out-which-users-are-logging-into-which-client-app/118345/5 "2023-10-12T19:17:11Z")

</div>

That’s correct, you can find our log retention policy here:

> **[Log Data Retention](https://auth0.com/docs/deploy-monitor/logs/log-data-retention)**
>
> Describes how long log data is stored depending on your Auth0 plan.

---

<div class="post-metadata">

**Author:** ![Sean\_McIlvenna](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sean_mcilvenna/32/6469_2.png) [@Sean\_McIlvenna](https://community.auth0.com/u/Sean_McIlvenna)\
**Post date:** [October 12, 2023, 7:47pm UTC](https://community.auth0.com/t/how-to-find-out-which-users-are-logging-into-which-client-app/118345/6 "2023-10-12T19:47:08Z")

</div>

So, are there other options beyond the logs (with limited retention unless paying for more), that would allow me to see how many of the 3k users I have in my tenant access each of the two apps?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 12, 2023, 10:51pm UTC](https://community.auth0.com/t/how-to-find-out-which-users-are-logging-into-which-client-app/118345/7 "2023-10-12T22:51:32Z")

</div>

You might be able to use the Management API [/api/v2/grants](https://auth0.com/docs/api/management/v2/grants/get-grants) and add a `client_id` param to see which users have authorized a specific client.

More forward looking, you could also look into [log streaming](https://auth0.com/docs/customize/log-streams) or hitting an API from within a [Post Login Action](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow) with the relevant `user_id` and `client_id`.

---

<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:** [October 26, 2023, 10:52pm UTC](https://community.auth0.com/t/how-to-find-out-which-users-are-logging-into-which-client-app/118345/8 "2023-10-26T22:52:29Z")

</div>

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