Skip to content

Retrieve a Universal Directory account

Request

OPA roles:
  • resource_admin
  • security_admin
  • delegated_resource_admin
  • delegated_security_admin

Retrieves a Universal Directory account from a resource group project

Security
bearerAuth
Path
team_namestringrequired

The name of your team

resource_group_idstringrequired

The UUID of a resource group

project_idstringrequired

The UUID of a project

okta_universal_directory_account_idstringrequired

The UUID of a Universal Directory account

curl -i -X GET \
  'https://{org_name}.pam.okta.com/v1/teams/{team_name}/resource_groups/{resource_group_id}/projects/{project_id}/okta_universal_directory_accounts/{okta_universal_directory_account_id}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Bodyapplication/json
last_password_change_error_metadatastring

The error message metadata reported during the most recent failure to change the account password

last_password_change_error_report_timestampstring, (date-time)

A timestamp indicating when the remote system last reported a failure to change to the account password

last_password_change_error_system_timestampstring, (date-time)

A timestamp reported from the remote system indicating when the remote system last failed to change the account password

last_password_change_error_typestring

The type of error message reported during the most recent failure to change the account password

last_password_change_success_report_timestampstring, (date-time)

A timestamp indicating when OPA last reported a change to the account password

last_password_change_system_timestampstring, (date-time)

A timestamp reported from the remote system indicating when the remote system last changed the account password

password_change_error_countinteger, (int32)

The number of times an account's password change resulted in failure

password_change_error_count_since_last_successinteger, (int32)

The number of times an account's password change failed after the last successful attempt

password_change_success_countinteger, (int32)

The number of times an account's password was successfully changed

account_namestring

A human-readable name for the Universal Directory account

Example:"AWS Prod-5 account"
checkout_enabledboolean

Indicates whether this Universal Directory account is included in the checkout settings

checkout_expiry_atstring, (date-time)

The period after checkout when a user's access to the Universal Directory account will expire

checkout_statusstring(ResourceAvailabilityStatus)

The Universal Directory account's checkout status

Enum:"available""checked_out""checked_out_by_other_user""password_not_rotated""unavailable""unmanaged"
created_atstring, (date-time)read-only

A timestamp that indicates when the Universal Directory account was created

idstring, (regex)^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-...read-only

The UUID of the SaaS Application Account

Example:"d1b65a78-21ed-429b-8ea3-eec96f2748d6"
last_checkout_userstring

The username of the user who last accessed the Universal Directory accounts via checkout

next_scheduled_password_rotation_reasonstring

The reason for scheduling the next password rotation for the Universal Directory account

next_scheduled_password_rotation_timestampstring, (date-time)

The timestamp indicating when the Universal Directory account password is scheduled to be rotated next

project_idstring

The UUID of the Project associated with this Universal Directory account

team_idstring

The UUID of the Team associated with this Universal Directory account

usernamestring

The username used to log into the Universal Directory account

Example:"OpsCaliforniaShared"
Response
{ "account_name": "AWS Prod-5 account", "checkout_enabled": true, "checkout_expiry_at": "2019-08-24T14:15:22Z", "checkout_status": "available", "created_at": "2019-08-24T14:15:22Z", "id": "d1b65a78-21ed-429b-8ea3-eec96f2748d6", "last_checkout_user": "string", "next_scheduled_password_rotation_reason": "string", "next_scheduled_password_rotation_timestamp": "2019-08-24T14:15:22Z", "project_id": "string", "team_id": "string", "username": "OpsCaliforniaShared", "last_password_change_error_metadata": "string", "last_password_change_error_report_timestamp": "2019-08-24T14:15:22Z", "last_password_change_error_system_timestamp": "2019-08-24T14:15:22Z", "last_password_change_error_type": "string", "last_password_change_success_report_timestamp": "2019-08-24T14:15:22Z", "last_password_change_system_timestamp": "2019-08-24T14:15:22Z", "password_change_error_count": 0, "password_change_error_count_since_last_success": 0, "password_change_success_count": 0 }