- okta.apps.read
Retrieves a specific user assignment for a specific app
An optional query parameter to return the corresponding User object in the _embedded property. Valid value: user
- https://subdomain.okta.comhttps://subdomain.okta.com/api/v1/apps/{appId}/users/{userId}
curl -i -X GET \
'https://subdomain.okta.com/api/v1/apps/0oafxqCAJWWGELFTYASJ/users/00u13okQOVWZJGDOAUVR?expand=user'Success
Timestamp when the object was created
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.
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.
Timestamp of the last synchronization operation. This value is only updated for apps with the IMPORT_PROFILE_UPDATES or PUSH PROFILE_UPDATES feature.
Timestamp when the object was last updated
Timestamp when the application user password was last changed
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.
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.
Status of an application user
| Enum Value | Description |
|---|---|
| ACTIVE | The application user is provisioned and is enabled to use the app. This status also occurs if the app has the |
| 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 |
| 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 |
| PROVISIONED | The background provisioning operation completed and the application user was assigned an |
| DEPROVISIONED | The user was removed by the provisioning operation and the |
Timestamp when the application user status was last changed
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 Value | Description |
|---|---|
| DISABLED | The provisioning feature is disabled for the app ( |
| 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. |
Embedded resources related to the application user using the JSON Hypertext Application Language specification
Specifies link relations (see Web Linking) available using the JSON Hypertext Application Language specification. This object is used for dynamic discovery of resources related to the application user.
{ "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": { … } } }