Skip to content

Retrieve a discovered Active Directory account

Request

OPA roles:
  • resource_admin

Retrieves a particular discovered Active Directory account by ID

Security
bearerAuth
Path
team_namestringrequired

The name of your team

ad_connection_idstring, (regex)(schemas-UUID)^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-...read-onlyrequired

The UUID of an Active Directory connection

Example:a747a818-a4c4-4446-8a87-704216495a08
ad_account_idstring, (regex)(schemas-UUID)^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-...read-onlyrequired

The UUID of an Active Directory account

Example:a747a818-a4c4-4446-8a87-704216495a08
curl -i -X GET \
  'https://{org_name}.pam.okta.com/v1/teams/{team_name}/resource_assignment/active_directory/a747a818-a4c4-4446-8a87-704216495a08/accounts/a747a818-a4c4-4446-8a87-704216495a08' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Success

Bodyapplication/json
account_namestring

The name of the Active Directory account

account_status_detailstring(ServiceAccountStatusDetail)read-only

Describes the detailed status of a service account

Enum ValueDescription
PENDING

The account is being created

CREATION_FAILED

The account can't be created

STAGED

The account is in the Okta Privileged Access resource assignment area

ROTATING

The account is assigned to a project in Okta Privileged Access. Credentials are currently being synced using Okta Lifecycle Management.

ROTATED

The account is assigned to a project in Okta Privileged Access. Password rotations are fulfilled by Okta Lifecycle Management.

ROTATION_FAILED

The account is assigned to a project in Okta Privileged Access. An error occurred while using Okta Lifecycle Management to rotate the password.

VAULTED

The account is assigned to a project in Okta Privileged Access. A manually managed password is assigned to the account.

MISSING_PASSWORD

The account is assigned to a project in Okta Privileged Access. A password isn't assigned to the account.

UNMANAGED

The account is assigned to a project in Okta Privileged Access. Initial password sync hasn't been attempted.

ROTATION_PENDING

The account is assigned to a project in Okta Privileged Access. A password rotation has been requested but has not yet started.

AVAILABLE

The account is assigned to a project in Okta Privileged Access. An admin has stored the password that is already in use on the account, so the account is ready for use without a rotation.

Example:"STAGED"
account_status_detail_messagestring

Optional additional information about the account status

account_typestring

The type of Active Directory account

Enum:"SHARED""INDIVIDUAL"
brought_under_management_atstring, (date-time)

Timestamp indicating when the Active Directory account was managed by Okta Privileged Access

display_namestring

The display name of this Active Directory user, if set

distinguished_namestring

The Distinguished Name (DN) referencing the Active Directory account

domainobject(NamedObject)

A reference to an object that has its ID, name and type

emailstring

The email of this Active Directory user, if set

first_namestring

The first name of this Active Directory user, if set

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

The UUID of the Active Directory account

last_namestring

The last name of this Active Directory user, if set

last_rotation_atstring, (date-time)

A timestamp indicating the last password rotation for the Active Directory Account

match_statusstring

The match status of the Active Directory Account

Enum:"MATCH""PARTIAL MATCH""NO MATCH""DUPLICATE""MANUAL MATCH"
matched_userobject(NamedObject)

A reference to an object that has its ID, name and type

projectobject(NamedObject)

A reference to an object that has its ID, name and type

resource_groupobject(NamedObject)

A reference to an object that has its ID, name and type

sam_account_namestring

The sAMAccountName field for this Active Directory account

sidstring

The Security Identifier (SID) for the Active Directory account

upnstring

The User Principal Name (UPN) for the Active Directory account

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

checkout_expiry_atstring, (date-time)

The timestamp when a user's exclusive access to the Active Directory account expires

checkout_statusstring(ResourceAvailabilityStatus)

The Active Directory account's exclusive checkout status

Enum:"available""checked_out""checked_out_by_other_user""password_not_rotated""unavailable""unmanaged"
last_checkout_userstring

The username of the user who last accessed the Active Directory account through exclusive checkout

next_scheduled_password_rotation_reasonstring

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

next_scheduled_password_rotation_timestampstring, (date-time)

The timestamp indicating when is the next scheduled Active Directory account password rotation

Response
{ "checkout_expiry_at": "2019-08-24T14:15:22Z", "checkout_status": "available", "last_checkout_user": "string", "next_scheduled_password_rotation_reason": "string", "next_scheduled_password_rotation_timestamp": "2019-08-24T14:15:22Z", "account_name": "string", "account_status_detail": "STAGED", "account_status_detail_message": "string", "account_type": "SHARED", "brought_under_management_at": "2019-08-24T14:15:22Z", "display_name": "string", "distinguished_name": "string", "domain": { "id": "string", "missing": false, "name": "string", "type": "active_directory_connection" }, "email": "string", "first_name": "string", "id": "/regex/", "last_name": "string", "last_rotation_at": "2019-08-24T14:15:22Z", "match_status": "MATCH", "matched_user": { "id": "string", "missing": false, "name": "string", "type": "active_directory_connection" }, "project": { "id": "string", "missing": false, "name": "string", "type": "active_directory_connection" }, "resource_group": { "id": "string", "missing": false, "name": "string", "type": "active_directory_connection" }, "sam_account_name": "string", "sid": "string", "upn": "string", "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 }