Skip to content

Retrieve an application user

Request

OAuth 2.0 scope:
  • okta.apps.read

Retrieves a specific user assignment for a specific app

Path
appIdstringrequired

Application ID

Example:0oafxqCAJWWGELFTYASJ
userIdstringrequired

ID of an existing Okta user

Example:00u13okQOVWZJGDOAUVR
Query
expandstring

An optional query parameter to return the corresponding User object in the _embedded property. Valid value: user

Example:expand=user
curl -i -X GET \
  'https://subdomain.okta.com/api/v1/apps/0oafxqCAJWWGELFTYASJ/users/00u13okQOVWZJGDOAUVR?expand=user'

Responses

Success

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

Timestamp when the object was created

Example:"2014-06-24T15:27:59.000Z"
credentialsobject(AppUserCredentials)

Specifies a user's credentials for the app. This parameter can be omitted for apps with sign-on mode (signOnMode) or authentication schemes (credentials.scheme) that don't require credentials.

externalIdstringread-only

The ID of the user in the target app that's linked to the Okta application user object. This value is the native app-specific identifier or primary key for the user in the target app.

The externalId is set during import when the user is confirmed (reconciled) or during provisioning when the user is created in the target app. This value isn't populated for SSO app assignments (for example, SAML or SWA) because it isn't synchronized with a target app.

Example:"70c14cc17d3745e8a9f98d599a68329c"
idstring

Unique identifier for the Okta user

Example:"00u11z6WHMYCGPCHCRFK"
lastSyncstring, (date-time)read-only

Timestamp of the last synchronization operation. This value is only updated for apps with the IMPORT_PROFILE_UPDATES or PUSH PROFILE_UPDATES feature.

Example:"2014-06-24T15:27:59.000Z"
lastUpdatedstring, (date-time)(lastUpdatedProperty)read-only

Timestamp when the object was last updated

Example:"2014-06-24T15:28:14.000Z"
passwordChangedstring or null, (date-time)read-only

Timestamp when the application user password was last changed

Example:"2014-06-24T15:27:59.000Z"
profileobject(AppUserProfile)

Specifies the default and custom profile properties for a user. Properties that are visible in the Admin Console for an app assignment can also be assigned through the API. Some properties are reference properties that are imported from the target app and can't be configured. See profile.

scopestring

Indicates if the assignment is direct (USER) or by group membership (GROUP). If not specified, Okta tries to determine the scope based on the assignment type.

Enum:"USER""GROUP"
Example:"USER"
statusstring(AppUserStatus)read-only

Status of an application user

Enum ValueDescription
ACTIVE

The application user is provisioned and is enabled to use the app. This status also occurs if the app has the IMPORT_PROFILE_UPDATES feature enabled and user import is confirmed, or if the app doesn't have provisioning enabled.

INACTIVE

The application user is provisioned, but isn't enabled to use the app. Application users in this status can be reactivated with a password reset or permanently deleted.

IMPORTED

The application user is created based on imported data.

MATCHED

The imported user is matched with an existing Application User.

UNASSIGNED

The application user was imported, but the user-matching operation was skipped.

SUSPENDED

The application user is provisioned, but isn't enabled to use the app. Application users in this status can be reactivated without a password reset.

PENDING

The application user is provisioned, but in a pending state and can't use the app. The status moves to ACTIVE when the application user is activated.

APPROVED

The application user was created but not provisioned. This status can occur when manual provisioning acknowledgment is required.

REVOKED

The application user is disabled and waiting for deprovisioning acknowledgment. The application user can be deleted after deprovisioning acknowledgment.

IMPLICIT

The application user is now migrated to use implicit app assignment.

STAGED

The application user doesn't have externalId set and the background provisioning operation is queued. This applies to apps with the PUSH_NEW_USERS feature enabled.

PROVISIONED

The background provisioning operation completed and the application user was assigned an externalId successfully.

DEPROVISIONED

The user was removed by the provisioning operation and the externalId property is unassigned.

Example:"ACTIVE"
statusChangedstring, (date-time)read-only

Timestamp when the application user status was last changed

Example:"2014-06-24T15:28:14.000Z"
syncStatestring(AppUserSyncState)read-only

The synchronization state for the application user. The application user's syncState depends on whether the PROFILE_MASTERING feature is enabled for the app.

Note: User provisioning currently must be configured through the Admin Console.

Enum ValueDescription
DISABLED

The provisioning feature is disabled for the app (PROFILE_MASTERING feature is disabled).

OUT_OF_SYNC

The Application User has changes that haven't been pushed to the target app.

SYNCING

A background provisioning operation is running to update the user's profile in the target app.

SYNCHRONIZED

All changes to the application user profile have successfully been synchronized with the target app.

ERROR

A background provisioning operation failed to update the user's profile in the target app. You must resolve the provisioning task in the Admin Console before you retry the operation.

Example:"SYNCHRONIZED"
_embeddedobjectread-only

Embedded resources related to the application user using the JSON Hypertext Application Language specification

Response
{ "id": "00u1dnq5S0CfjlkpABCD", "externalId": "00u5edt3PNbbjzvIABCD", "created": "2024-01-31T18:25:01.000Z", "lastUpdated": "2024-01-31T18:25:03.000Z", "scope": "USER", "status": "PROVISIONED", "statusChanged": "2024-01-31T18:25:03.000Z", "passwordChanged": null, "syncState": "SYNCHRONIZED", "lastSync": "2024-01-31T18:25:03.000Z", "credentials": { "userName": "saml.test@example.com" }, "profile": { "secondEmail": null, "lastName": "Test", "mobilePhone": null, "displayName": "Saml O Test", "email": "saml.test@example.com", "salesforceGroups": [], "role": "Tester", "firstName": "Saml", "streetAddress": null, "profile": "Standard Platform User" }, "_links": { "app": { … }, "user": { … } }, "_embedded": { "user": { … } } }