The Application Users API provides operations to manage app users and their assignments. The object returned from assigning a user to an app is known as the Application User.
You can assign users to apps for:
okta.apps.read
Lists all assigned users for an app
after | string Specifies the pagination cursor for the next page of results. Treat this as an opaque value obtained through the next link relationship. See Pagination. Example: after=16275000448691 |
limit | integer <int32> [ 1 .. 500 ] Default: 50 Specifies the number of objects to return per page.
If there are multiple pages of results, the Link header contains a |
q | string Specifies a filter for the list of Application Users returned based on their profile attributes.
The value of
Example: q=sam |
expand | string An optional query parameter to return the corresponding User object in the Example: expand=user |
Success
Forbidden
Not Found
Too Many Requests
[- {
- "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": {
}, - "_embedded": {
- "user": {
- "id": "00u1dnq5S0CfjlkpABCD",
- "status": "ACTIVE",
- "created": "2024-01-09T15:36:04.000Z",
- "activated": "2024-01-09T15:36:05.000Z",
- "statusChanged": "2024-01-09T15:36:05.000Z",
- "lastLogin": null,
- "lastUpdated": "2024-01-09T15:36:05.000Z",
- "passwordChanged": "2024-01-09T15:36:05.000Z",
- "type": {
- "id": "otyzhh29g7Python90g3"
}, - "profile": {
- "firstName": "Saml",
- "lastName": "Test",
- "mobilePhone": null,
- "secondEmail": null,
- "login": "saml.test@example.com",
- "email": "saml.test@example.com"
}, - "credentials": {
- "password": { },
- "provider": {
- "type": "OKTA",
- "name": "OKTA"
}
}, - "_links": {
- "suspend": {
- "method": "POST"
}, - "resetPassword": {
- "method": "POST"
}, - "expirePassword": {
- "method": "POST"
}, - "changeRecoveryQuestion": {
- "method": "POST"
}, - "changePassword": {
- "method": "POST"
}, - "deactivate": {
- "method": "POST"
}
}
}
}
}
]
okta.apps.manage
Assigns a user to an app for:
SSO only
Assignments to SSO apps typically don't include a user profile.
However, if your SSO app requires a profile but doesn't have provisioning enabled, you can add profile attributes in the request body.
SSO and provisioning
Assignments to SSO and provisioning apps typically include credentials and an app-specific profile.
Profile mappings defined for the app are applied first before applying any profile properties that are specified in the request body.
Notes:
- When Universal Directory is enabled, you can only specify profile properties that aren't defined in profile mappings.
- Omit mapped properties during assignment to minimize assignment errors.
id required | string Unique identifier for the Okta User | ||||||
object (AppUserCredentials) Specifies a user's credentials for the app.
This parameter can be omitted for apps with sign-on mode ( | |||||||
| |||||||
object (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. | |||||||
scope | string Indicates if the assignment is direct ( |
Success
Bad Request
Forbidden
Not Found
Too Many Requests
{- "id": "00ud4tVDDXYVKPXKVLCO",
- "scope": "USER",
- "credentials": {
- "userName": "rae.cloud@example.com"
}
}
{- "id": "00ud4tVDDXYVKPXKVLCO",
- "externalId": null,
- "created": "2024-01-27T03:52:45.000Z",
- "lastUpdated": "2024-01-27T03:52:45.000Z",
- "scope": "USER",
- "status": "ACTIVE",
- "statusChanged": "2024-01-27T03:52:45.000Z",
- "passwordChanged": null,
- "syncState": "DISABLED",
- "credentials"": {
- "userName": "rae.cloud@example.com"
}, - "profile": {
- "street_address": null,
- "country": null,
- "website": null,
- "zoneinfo": "America/Los_Angeles",
- "birthdate": null,
- "gender": null,
- "formatted": null,
- "profile": null,
- "locality": null,
- "given_name": "Rae",
- "middle_name": null,
- "locale": "en_US",
- "picture": null,
- "name": "Rae Cloud",
- "nickname": null,
- "phone_number": null,
- "region": null,
- "postal_code": null,
- "family_name": "Cloud",
- "email": "rae.cloud@example.com"
}, - "_links": {
}
}
okta.apps.read
Retrieves a specific user assignment for a specific app
expand | string An optional query parameter to return the corresponding User object in the Example: expand=user |
Success
Forbidden
Not Found
Too Many Requests
{- "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": {
}, - "_embedded": {
- "user": {
- "id": "00u1dnq5S0CfjlkpABCD",
- "status": "ACTIVE",
- "created": "2024-01-09T15:36:04.000Z",
- "activated": "2024-01-09T15:36:05.000Z",
- "statusChanged": "2024-01-09T15:36:05.000Z",
- "lastLogin": null,
- "lastUpdated": "2024-01-09T15:36:05.000Z",
- "passwordChanged": "2024-01-09T15:36:05.000Z",
- "type": {
- "id": "otyzhh29g7Python90g3"
}, - "profile": {
- "firstName": "Saml",
- "lastName": "Test",
- "mobilePhone": null,
- "secondEmail": null,
- "login": "saml.test@example.com",
- "email": "saml.test@example.com"
}, - "credentials": {
- "password": { },
- "provider": {
- "type": "OKTA",
- "name": "OKTA"
}
}, - "_links": {
- "suspend": {
- "method": "POST"
}, - "resetPassword": {
- "method": "POST"
}, - "expirePassword": {
- "method": "POST"
}, - "changeRecoveryQuestion": {
- "method": "POST"
}, - "changePassword": {
- "method": "POST"
}, - "deactivate": {
- "method": "POST"
}
}
}
}
}
okta.apps.manage
Updates the profile or credentials of a user assigned to an app
Updates the assigned user credentials
object (AppUserCredentials) Specifies a user's credentials for the app.
This parameter can be omitted for apps with sign-on mode ( | |||||||
|
Success
Bad Request
Forbidden
Not Found
Too Many Requests
{- "credentials": {
- "userName": "rae.cloud@example.com",
- "password": {
- "value": "updatedP@55word"
}
}
}
{- "id": "00ud4tVDDXYVKPXKVLCO",
- "externalId": null,
- "created": "2024-01-27T03:52:45.000Z",
- "lastUpdated": "2024-01-27T05:15:30.000Z",
- "scope": "USER",
- "status": "ACTIVE",
- "statusChanged": "2024-01-27T03:52:45.000Z",
- "passwordChanged": "2024-01-27T05:15:30.000Z",
- "syncState": "DISABLED",
- "credentials"": {
- "userName": "rae.cloud@example.com",
- "password": { }
}, - "profile": {
- "street_address": null,
- "country": null,
- "website": null,
- "zoneinfo": "America/Los_Angeles",
- "birthdate": null,
- "gender": null,
- "formatted": null,
- "profile": null,
- "locality": null,
- "given_name": "Rae",
- "middle_name": null,
- "locale": "en_US",
- "picture": null,
- "name": "Rae Cloud",
- "nickname": null,
- "phone_number": null,
- "region": null,
- "postal_code": null,
- "family_name": "Cloud",
- "email": "rae.cloud@example.com"
}, - "_links": {
}
}
okta.apps.manage
Unassigns a user from an app
For directories like Active Directory and LDAP, they act as the owner of the user's credential with Okta delegating authentication (DelAuth) to that directory. If this request is successful for a user when DelAuth is enabled, then the user is in a state with no password. You can then reset the user's password.
Important: This is a destructive operation. You can't recover the user's app profile. If the app is enabled for provisioning and configured to deactivate users, the user is also deactivated in the target app.
No Content
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}