# Failed to obtain access token - How to identify the connection name

**URL:** <https://community.auth0.com/t/failed-to-obtain-access-token-how-to-identify-the-connection-name/194323>\
**Category:** Get Help\
**Tags:** azure-ad-enterprise-connection, connections\
**Created:** [November 11, 2025, 1:50pm UTC](https://community.auth0.com/t/failed-to-obtain-access-token-how-to-identify-the-connection-name/194323 "2025-11-11T13:50:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter.cowen](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/peter.cowen/32/72233_2.png) [@peter.cowen](https://community.auth0.com/u/peter.cowen)\
**Post date:** [November 11, 2025, 1:50pm UTC](https://community.auth0.com/t/failed-to-obtain-access-token-how-to-identify-the-connection-name/194323/1 "2025-11-11T13:50:32Z")

</div>

We are seeing ‘Failed to obtain access token’ and we have a number of connections configured for Azure AD (EntraID). The log message only gives you the client ID. Is there a way to use the clientID in the log to locate which connection it relates to?

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [November 11, 2025, 6:02pm UTC](https://community.auth0.com/t/failed-to-obtain-access-token-how-to-identify-the-connection-name/194323/3 "2025-11-11T18:02:09Z")

</div>

Hi @peter.cowen,

Welcome to the Auth0 Community!

Please allow me some time to investigate the matter and I will be back with more pieces of information as soon as possible.

Thank you,  
Remus

---

<div class="post-metadata">

**Author:** ![peter.cowen](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/peter.cowen/32/72233_2.png) [@peter.cowen](https://community.auth0.com/u/peter.cowen)\
**Post date:** [November 12, 2025, 8:28am UTC](https://community.auth0.com/t/failed-to-obtain-access-token-how-to-identify-the-connection-name/194323/4 "2025-11-12T08:28:06Z")

</div>

Thank you, If there isn’t. do you know if you can map the connection name into the log as the field is there but empty.

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [November 12, 2025, 6:38pm UTC](https://community.auth0.com/t/failed-to-obtain-access-token-how-to-identify-the-connection-name/194323/5 "2025-11-12T18:38:24Z")

</div>

Hello @peter.cowen,

Welcome to the Auth0 Community!

For events such as “seacft”, “slo”, “sapi”, “seccft”, “feacft”, or “api\_limit”, which I believe should be the case here as well, the **connection\_id** is expected to be missing in all scenarios, and this log field is not configurable.

There is currently an internal item in our backlog about this, so what I would suggest is to create a [Product Feedback](https://community.auth0.com/c/feedback/95) to try and speed things up, since our product team is closely monitoring this category and others might be interested as well, so by receiving multiple votes the feature might be implemented rather sooner than later.

I totally understand your need for the connection\_id there, since it makes monitoring and troubleshooting a lot easier. As a workaround, you can locate the connection\_id either by:

1. **Correlating by Timestamp** - Note the exact Timestamp and the User\_id, go to Auth0 Dashboard \> Logs and you can put a window of around 1-minute around that timestamp and filter for the user, so you can find another log, such as an " **s"** ( successful login ) that should populate the connection\_id as well of the transation.

2. **Checking the Client ID**  
a) If you have a manageable number of Azure AD connections you can manually check the cliend ID within your connections  
b) Use the [GET /v2/connections](https://auth0.com/docs/api/management/v2/connections/get-connections) from the Management API with the query parameter `strategy=waad` to list all of your Azure AD connections and locate the matching connection with by using searching for the client ID in the `options.client_id` object.

I hope this helps and if you have further inquiries into the matter please don’t hesitate to ask.  
Thank you and kind regards,  
Remus

---

<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:** [November 26, 2025, 6:38pm UTC](https://community.auth0.com/t/failed-to-obtain-access-token-how-to-identify-the-connection-name/194323/6 "2025-11-26T18:38:53Z")

</div>

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