Skip to content

Retrieve the Active Directory account sync status

Request

Early Access
OPA roles:
  • resource_admin

Retrieves the Active Directory account sync status

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

Responses

Success

Bodyapplication/json
string(ADAccountSyncStatus)

The AD account sync status

Enum ValueDescription
NOT_SYNCED

Indicates that there is no sync of AD accounts in progress

SYNC_IN_PROGRESS

Indicates that there is a sync of AD accounts in progress

SYNC_FAILED

Indicates that a sync of AD accounts has failed

SYNC_COMPLETED

Indicates that a sync of AD accounts has successfully completed

Response
"NOT_SYNCED"