# Social accounts linking doesn't work either from API or via docs management APi

**URL:** <https://community.auth0.com/t/social-accounts-linking-doesnt-work-either-from-api-or-via-docs-management-api/194183>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [November 7, 2025, 9:39am UTC](https://community.auth0.com/t/social-accounts-linking-doesnt-work-either-from-api-or-via-docs-management-api/194183 "2025-11-07T09:39:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vchr](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vchr/32/73628_2.png) [@vchr](https://community.auth0.com/u/vchr)\
**Post date:** [November 7, 2025, 9:39am UTC](https://community.auth0.com/t/social-accounts-linking-doesnt-work-either-from-api-or-via-docs-management-api/194183/1 "2025-11-07T09:39:07Z")

</div>

Social accounts cannot be linked via the API Explorer you are offering. There example body is invalid, the documentation is misleading and it shouldn’t be that way. Errors codes are invalid.  
I am sending a request with a valid provider value and a valid connection\_id (even though its optional) and it still fails.

---

<div class="post-metadata">

**Author:** ![vchr](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vchr/32/73628_2.png) [@vchr](https://community.auth0.com/u/vchr)\
**Post date:** [November 7, 2025, 9:40am UTC](https://community.auth0.com/t/social-accounts-linking-doesnt-work-either-from-api-or-via-docs-management-api/194183/2 "2025-11-07T09:40:15Z")

</div>

The response i get from the API explorer is

{  
“statusCode”: 400,  
“error”: “Bad Request”,  
“message”: “The provider/connection is not configured.”,  
“errorCode”: “inexistent\_connection”  
}

which is wrong, as the connection exists.

---

<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 7, 2025, 8:44pm UTC](https://community.auth0.com/t/social-accounts-linking-doesnt-work-either-from-api-or-via-docs-management-api/194183/4 "2025-11-07T20:44:30Z")

</div>

Hello @vchr,

Welcome to the Auth0 Community!

I have just tested this on my end, and the [Link a User Account](https://auth0.com/docs/api/management/v2/users/post-identities) endpoint from the **Management API** works as intended, as I was able to link user accounts, with both database connections or social connections, while using the **API Explorer** token.

After setting the API Explorer in the Set Api Token field, you only need to make sure that you pass these parameters correctly in the body of the request:

- **provider** : This is the provider type of the secondary account you want to link. For example, `auth0` (for a database connection), `google-oauth2` (for Google), `facebook`, etc.
- **user\_id** : This is the full, unique `user_id` of the secondary user account (e.g., `google-oauth2|123456789..., auth0|12345abcd...`).

Such as:

```auto
{
  "provider": "SECONDARY_ACCOUNT_PROVIDER",
  "user_id": "SECONDARY_ACCOUNT_USER_ID"
}

```

You may also need to include the `connection_id` if the secondary account is from an `auth0` database connection and you have multiple database connections.

Thank you,  
Remus

---

<div class="post-metadata">

**Author:** ![vchr](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vchr/32/73628_2.png) [@vchr](https://community.auth0.com/u/vchr)\
**Post date:** [November 17, 2025, 7:15pm UTC](https://community.auth0.com/t/social-accounts-linking-doesnt-work-either-from-api-or-via-docs-management-api/194183/5 "2025-11-17T19:15:12Z")

</div>

Closing something as solved even though the original author didn’t mention their question was solved is not great way to run this forum and expect people will ask questions.

My original issue is still valid, and its an issue of documentation and library signatures.

`@auth0/5.1.0` expects a `UserIdentityProviderEnum`and when selecting custom for a custom provider, the api responds with invalid provider.

Even the link you posted in the documentation of the API hints on the following example.

`{“provider”: “ad”,“connection_id”: “string”,”user_id”: [“string”,0],“link_with”: “string”}` which is clearly invalid based on your response and the json you posted.

So yeah, the docs and the signatures are misleading. If you were able to do it maybe you can update the documentation for your users to be able to also do it.
