- okta.users.manage
Links an Okta user to an existing identity provider (IdP). The IdP can be a generic OpenID Connect (OIDC), Okta Integration, social, or SAML IdP. Set externalId to the user's unique identifier at the IdP. For an OIDC or Okta Integration IdP, this is the value of the sub claim that the IdP issues for the user. Okta uses this link to match the user when they sign in through the IdP, or when the IdP issues an Identity Assertion JWT Authorization Grant (ID-JAG) for the user in a Cross App Access (XAA) flow. If the user is already linked to the IdP with a different externalId, the request replaces it. To link a user to a SAML IdP, the IdP must have honorPersistentNameId set to true. The Name Identifier Format of the incoming assertion must be urn:oasis:names:tc:SAML:2.0:nameid-format:persistent.
The SAML IdP must have honorPersistentNameId set to true to use this API. The Name Identifier Format of the incoming assertion must be urn:oasis:names:tc:SAML:2.0:nameid-format:persistent.
- https://subdomain.okta.comhttps://subdomain.okta.com/api/v1/idps/{idpId}/users/{userId}
curl -i -X POST \
https://subdomain.okta.com/api/v1/idps/0oa62bfdjnK55Z5x80h7/users/00ub0oNGTSWTBKOLGLNR \
-H 'Content-Type: application/json' \
-d '{
"externalId": "121749775026145"
}'Success
Timestamp when the object was created
Unique IdP-specific identifier for the user
Timestamp when the object was last updated
IdP-specific profile for the user.
IdP user profiles are IdP-specific but may be customized by the Profile Editor in the Admin Console.
Note: Okta variable names have reserved characters that may conflict with the name of an IdP assertion attribute. You can use the External name to define the attribute name as defined in an IdP assertion such as a SAML attribute name.
{ "lastName": "Jackson", "subjectNameQualifier": "example.com", "subjectSpNameQualifier": "urn:federation:example", "authnContextClassRef": null, "subjectNameId": "saml.jackson@example.com", "subjectConfirmationAddress": null, "displayName": "Saml Jackson", "mobilePhone": "+1-415-555-5141", "email": "saml.jackson@example.com", "subjectNameFormat": "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress", "firstName": "Saml", "subjectSpProvidedId": null, "subjectConfirmationMethod": null }
Specifies link relations (see Web Linking) available using the JSON Hypertext Application Language specification. This object is used for dynamic discovery of related resources and lifecycle operations.
{ "id": "00ub0oNGTSWTBKOLGLNR", "externalId": "121749775026145", "created": "2017-03-30T02:19:51.000Z", "lastUpdated": "2017-03-30T02:19:51.000Z", "_links": { "self": { … }, "idp": { … }, "user": { … } } }