# Enterprise Connection retrieve access token

**URL:** <https://community.auth0.com/t/enterprise-connection-retrieve-access-token/194890>\
**Category:** Get Help\
**Tags:** oidc-enterprise-connection, connections\
**Created:** [November 25, 2025, 4:41pm UTC](https://community.auth0.com/t/enterprise-connection-retrieve-access-token/194890 "2025-11-25T16:41:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stuart.mackintosh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stuart.mackintosh/32/71228_2.png) [@stuart.mackintosh](https://community.auth0.com/u/stuart.mackintosh)\
**Post date:** [November 25, 2025, 4:41pm UTC](https://community.auth0.com/t/enterprise-connection-retrieve-access-token/194890/1 "2025-11-25T16:41:29Z")

</div>

Hello,

I am trying to follow [Call an Identity Provider API](https://auth0.com/docs/authenticate/identity-providers/calling-an-external-idp-api) to get an access token once the user has authenticated from an Enterprise Connection.

When I then try to exchange this using the API described:

GET [https://dev-n3xasz4ih2vaiv5v.us.auth0.com/api/v2/users/oidc|conn1|username](https://dev-n3xasz4ih2vaiv5v.us.auth0.com/api/v2/users/oidc%7Cconn1%7Cusername)

with the Auth0 management API bearer token, I receive:

{

```auto
"created_at": "2025-07-17T14:37:27.318Z",

"identities": [

    {

        "user_id": "conn1|username",

        "provider": "oidc",

        "connection": "conn1",

        "isSocial": **false**

    }

 ],

```

```auto
  ......

```

}

where there is no _access\_token_ in the identity response.

How can I obtain the access token related to the user who authenticates via the Enteprise Connection?

Regards Stuart

---

<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 25, 2025, 6:27pm UTC](https://community.auth0.com/t/enterprise-connection-retrieve-access-token/194890/3 "2025-11-25T18:27:13Z")

</div>

Hi @stuart.mackintosh,

Welcome back to the Auth0 Community!

The above mentioned behavior is the expected one since unfortunately the OIDC Enterprise Connections do not yet include an access token in the identities array of the user profile. The workaround would be creating a custom social connection, as suggested in this article as well - [No IdP Access Token in Identities Array for OIDC Enterprise Connections](https://support.auth0.com/center/s/article/No-IdP-Access-Token-in-Identities-Array-for-OIDC-Enterprise-Connections).

Thank you!  
Best regards,  
Remus

---

<div class="post-metadata">

**Author:** ![stuart.mackintosh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stuart.mackintosh/32/71228_2.png) [@stuart.mackintosh](https://community.auth0.com/u/stuart.mackintosh)\
**Post date:** [November 26, 2025, 9:36am UTC](https://community.auth0.com/t/enterprise-connection-retrieve-access-token/194890/4 "2025-11-26T09:36:47Z")

</div>

Ok thanks for your help

---

<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:** [December 10, 2025, 9:37am UTC](https://community.auth0.com/t/enterprise-connection-retrieve-access-token/194890/5 "2025-12-10T09:37:06Z")

</div>

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