---
title: "Link a user to a Social IdP without a transaction"
method: POST
path: "/api/v1/idps/{idpId}/users/{userId}"
tags: ["IdentityProvider"]
---

# Link a user to a Social IdP without a transaction

`POST /api/v1/idps/{idpId}/users/{userId}`

## Request

- Base URL: `https://your-subdomain.okta.com`
- URL: `https://your-subdomain.okta.com/api/v1/idps/{idpId}/users/{userId}`
- Auth: API key in header `Authorization`

Links an Okta user to an existing Social Identity Provider. This does not support the SAML2 Identity Provider Type

## Path parameters

- `idpId` string, required
- `userId` string, required

## Request body

- UserIdentityProviderLinkRequest
  - `externalId` string

## Response `200`

Success

- IdentityProviderApplicationUser
  - `_embedded` object
  - `_links` object
  - `created` string
  - `externalId` string
  - `id` string
  - `lastUpdated` string
  - `profile` object

---

[API](https://skmtc.dev/okta/apis/okta-api.md) - [All operations](https://skmtc.dev/okta/apis/okta-api/llms.txt) - [OpenAPI document](https://skmtc.dev/okta/apis/okta-api/revisions/7e5249c30571?raw)
