Skip to content

Retrieve a user for IdP

Request

OAuth 2.0 scope:
  • okta.idps.read

Retrieves a linked identity provider (IdP) user by ID

Path
idpIdstringrequired

id of IdP

Example:0oa62bfdjnK55Z5x80h7
userIdstringrequired

ID of an existing Okta user

Example:00ub0oNGTSWTBKOLGLNR
curl -i -X GET \
  https://subdomain.okta.com/api/v1/idps/0oa62bfdjnK55Z5x80h7/users/00ub0oNGTSWTBKOLGLNR

Responses

Success

Bodyapplication/json
createdstring, (date-time)(Created)read-only

Timestamp when the object was created

Example:"2016-01-03T18:15:47.000Z"
externalIdstring, <= 512 charactersread-only

Unique IdP-specific identifier for the user

Example:"saml.jackson@example.com"
idstringread-only

Unique key of the user

lastUpdatedstring, (date-time)(LastUpdated)read-only

Timestamp when the object was last updated

Example:"2016-01-03T18:15:47.000Z"
profileobject

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.

Example:
{ "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 }
_embeddedobjectread-only

Embedded resources related to the IdP user

Response
{ "id": "00u5t60iloOHN9pBi0h7", "externalId": "externalId", "created": "2017-12-19T17:30:16.000Z", "lastUpdated": "2017-12-19T17:30:16.000Z", "profile": { "profileUrl": null, "firstName": null, "lastName": null, "honorificSuffix": null, "displayName": null, "honorificPrefix": null, "middleName": null, "email": null }, "_links": { "idp": { … }, "self": { … }, "user": { … } } }