The Active Directory (AD) Accounts API provides operations for managing discovered AD accounts and account mappings.
Lists all Active Directory domains that you (as the request user) can access based on the security policies
OK
{- "list": [
- {
- "id": "a747a818-a4c4-4446-8a87-704216495a08",
- "name": "string"
}
]
}
Retrieves an Active Directory connection that you (as the request user) can access
OK
{- "id": "a747a818-a4c4-4446-8a87-704216495a08",
- "name": "string"
}
Lists all Active Directory accounts within a connection that you (as the request user) can access
OK
{- "list": [
- {
- "account": {
- "id": "a747a818-a4c4-4446-8a87-704216495a08",
- "username": "string",
- "account_type": "INDIVIDUAL",
- "availability_status": "AVAILABLE"
}, - "checkout_details": {
- "checkout_required": true,
- "current_user_checkout_expires_at": "2019-08-24T14:15:22Z"
}
}
]
}
Retrieves an Active Directory account that you (as the request user) can access
OK
{- "account": {
- "id": "a747a818-a4c4-4446-8a87-704216495a08",
- "username": "string",
- "account_type": "INDIVIDUAL",
- "availability_status": "AVAILABLE"
}, - "checkout_details": {
- "checkout_required": true,
- "current_user_checkout_expires_at": "2019-08-24T14:15:22Z"
}
}
Reveals the password belonging to an Active Directory account that you (as the request user) can access
required | object (RawJSONWebKey) A JSON Web Key formatted in accordance with RFC 7517. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object (UserAccessMethod) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Success
Unauthorized
Not found
{- "public_key": {
- "alg": "RSA-OAEP-256",
- "crv": "P-256",
- "d": "string",
- "dp": "string",
- "dq": "string",
- "e": "string",
- "k": "string",
- "kid": "/regex/",
- "kty": "EC",
- "n": "string",
- "p": "string",
- "q": "string",
- "qi": "string",
- "use": "string",
- "x": "string",
- "x5c": [
- "string"
], - "x5t": "string",
- "x5t#S256": "string",
- "x5u": "string",
- "y": "string"
}, - "user_access_method": {
- "access_credential": "managed",
- "availability_details_text": "string",
- "brokered": true,
- "checkout_requirements": {
- "max_checkout_duration_in_seconds": 0,
- "required": true
}, - "conditionals": [
- {
- "access_request_type_id": "string",
- "access_request_type_name": "string",
- "acr_values": "phr",
- "condition_is_met": true,
- "description": "string",
- "expires_after_seconds": 0,
- "type": "access_request"
}
], - "current_user_checkout_expires_at": "2019-08-24T14:15:22Z",
- "details": {
- "path": [
- { }
], - "privileges": {
- "_type": "string",
- "folder_create": true,
- "folder_delete": true,
- "folder_update": true,
- "list": true,
- "secret_create": true,
- "secret_delete": true,
- "secret_reveal": true,
- "secret_update": true
}, - "secret_id": "string",
- "secret_name": "string"
}, - "identity": "string",
- "resource_status": "available",
- "rule_ids": [
- "string"
], - "server_host_name": "string",
- "server_id": "string",
- "short_text": "string",
- "sudo_command_bundles": [
- {
- "ent_type": "string",
- "sudo_add_env": [
- "string"
], - "sudo_commands": [
- "string"
], - "sudo_group_name": "string",
- "sudo_id": "string",
- "sudo_login_username": "string",
- "sudo_name": "string",
- "sudo_noexec": true,
- "sudo_nopasswd": true,
- "sudo_runas": "string",
- "sudo_setenv": true,
- "sudo_sub_env": [
- "string"
]
}
], - "user_access_type": "string"
}
}
{- "password_jwe": "string"
}
Lists all user access methods for an Active Directory (AD) account based on the security policies
OK
{- "list": [
- {
- "access_credential": "managed",
- "availability_details_text": "string",
- "brokered": true,
- "checkout_requirements": {
- "max_checkout_duration_in_seconds": 0,
- "required": true
}, - "conditionals": [
- {
- "access_request_type_id": "string",
- "access_request_type_name": "string",
- "acr_values": "phr",
- "condition_is_met": true,
- "description": "string",
- "expires_after_seconds": 0,
- "type": "access_request"
}
], - "current_user_checkout_expires_at": "2019-08-24T14:15:22Z",
- "details": {
- "path": [
- {
- "id": "string",
- "name": "string"
}
], - "privileges": {
- "_type": "string",
- "folder_create": true,
- "folder_delete": true,
- "folder_update": true,
- "list": true,
- "secret_create": true,
- "secret_delete": true,
- "secret_reveal": true,
- "secret_update": true
}, - "secret_id": "string",
- "secret_name": "string",
- "_type": "string"
}, - "identity": "string",
- "resource_status": "available",
- "rule_ids": [
- "string"
], - "server_host_name": "string",
- "server_id": "string",
- "short_text": "string",
- "sudo_command_bundles": [
- {
- "ent_type": "string",
- "sudo_add_env": [
- "string"
], - "sudo_commands": [
- "string"
], - "sudo_group_name": "string",
- "sudo_id": "string",
- "sudo_login_username": "string",
- "sudo_name": "string",
- "sudo_noexec": true,
- "sudo_nopasswd": true,
- "sudo_runas": "string",
- "sudo_setenv": true,
- "sudo_sub_env": [
- "string"
]
}
], - "sudo_display_name": "string",
- "user_access_type": "string"
}
]
}
Lists all Active Directory accounts
OK
Unauthorized
Not found
{- "list": [
- {
- "account_name": "string",
- "account_type": "SHARED",
- "brought_under_management_at": "2019-08-24T14:15:22Z",
- "display_name": "string",
- "distinguished_name": "string",
- "domain": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "email": "string",
- "first_name": "string",
- "last_name": "string",
- "last_rotation_at": "2019-08-24T14:15:22Z",
- "match_status": "MATCH",
- "matched_user": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "project": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "resource_group": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "sam_account_name": "string",
- "sid": "string",
- "upn": "string"
}
]
}
Lists all discovered Active Directory accounts
Success
Unauthorized
Not found
{- "list": [
- {
- "account_name": "string",
- "account_type": "SHARED",
- "brought_under_management_at": "2019-08-24T14:15:22Z",
- "display_name": "string",
- "distinguished_name": "string",
- "domain": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "email": "string",
- "first_name": "string",
- "last_name": "string",
- "last_rotation_at": "2019-08-24T14:15:22Z",
- "match_status": "MATCH",
- "matched_user": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "project": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "resource_group": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "sam_account_name": "string",
- "sid": "string",
- "upn": "string"
}
]
}
Retrieves a particular discovered Active Directory account by ID
Success
Unauthorized
Not found
{- "checkout_expiry_at": "2019-08-24T14:15:22Z",
- "checkout_status": "checked_out",
- "last_checkout_user": "string",
- "next_scheduled_password_rotation_reason": "string",
- "next_scheduled_password_rotation_timestamp": "2019-08-24T14:15:22Z",
- "account_name": "string",
- "account_type": "SHARED",
- "brought_under_management_at": "2019-08-24T14:15:22Z",
- "display_name": "string",
- "distinguished_name": "string",
- "domain": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "email": "string",
- "first_name": "string",
- "last_name": "string",
- "last_rotation_at": "2019-08-24T14:15:22Z",
- "match_status": "MATCH",
- "matched_user": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "project": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "resource_group": {
- "id": "string",
- "missing": true,
- "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
}
Retrieves information about an Active Directory (AD) account that's matched with an Okta Privileged Access (OPA) user. This request is only valid for individual AD accounts, not shared accounts. AD account rules for this connection control the match between AD accounts and OPA users.
Success
Unauthorized
Not found
{- "ad_account_id": "a747a818-a4c4-4446-8a87-704216495a08",
- "force_no_match": true,
- "match_override_user_id": "string",
- "rule_match_user_id": "string"
}
Updates the Okta Privileged Access (OPA) user to match an Active Directory (AD) account and overrides any match configured from an AD account rule. This match override persists across any updates to the connection account rules.
Success
Unauthorized
Not found
{- "force_no_match": true,
- "match_override_user_id": "string"
}
{- "ad_account_id": "a747a818-a4c4-4446-8a87-704216495a08",
- "force_no_match": true,
- "match_override_user_id": "string",
- "rule_match_user_id": "string"
}
Retrieves the Active Directory account rule settings
Success
Unauthorized
Not found
{- "allow_partial_matches": true,
- "is_configured": true,
- "matching_criteria": {
- "display_name": true,
- "email": true,
- "first_and_last_name": true,
- "username": true
}, - "partial_matching_criteria": [
- {
- "match_value": "string",
- "operator": "ENDS WITH"
}
]
}
Configures the Active Directory account rule settings that apply to the entire list of required account rules
No Content
Unauthorized
Not found
{- "allow_partial_matches": true,
- "matching_criteria": {
- "display_name": true,
- "email": true,
- "first_and_last_name": true,
- "username": true
}, - "partial_matching_criteria": [
- {
- "match_value": "string",
- "operator": "ENDS WITH"
}
]
}
{- "code": 401,
- "message": "Missing capability: role",
- "nottype": "authorization_error"
}
Lists all Active Directory account rules
Success
Unauthorized
Not found
{- "list": [
- {
- "id": "a747a818-a4c4-4446-8a87-704216495a08",
- "name": "string",
- "organizational_units": [
- "string"
], - "priority": 0,
- "project": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "resource_group": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "rule_type": "SHARED"
}
]
}
Creates an Active Directory account rule
No Content
Unauthorized
Not found
{- "name": "string",
- "organizational_units": [
- "string"
], - "project": {
- "id": "string",
- "missing": true
}, - "resource_group": {
- "id": "string",
- "missing": true
}, - "rule_type": "SHARED"
}
{- "id": "a747a818-a4c4-4446-8a87-704216495a08",
- "name": "string",
- "organizational_units": [
- "string"
], - "priority": 0,
- "project": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "resource_group": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "rule_type": "SHARED"
}
Sets the priority of Active Directory account rules
Success
Bad request
Unauthorized
Not found
Conflict
[- {
- "priority": 1,
- "rule_id": "a747a818-a4c4-4446-8a87-704216495a08"
}
]
{- "list": [
- {
- "id": "a747a818-a4c4-4446-8a87-704216495a08",
- "name": "string",
- "organizational_units": [
- "string"
], - "priority": 0,
- "project": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "resource_group": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "rule_type": "SHARED"
}
]
}
Retrieves an Active Directory account rule
OK
{- "id": "a747a818-a4c4-4446-8a87-704216495a08",
- "name": "string",
- "organizational_units": [
- "string"
], - "priority": 0,
- "project": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "resource_group": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "rule_type": "SHARED"
}
Updates an Active Directory account rule
No Content
{- "name": "string",
- "organizational_units": [
- "string"
], - "project": {
- "id": "string",
- "missing": true
}, - "resource_group": {
- "id": "string",
- "missing": true
}, - "rule_type": "SHARED"
}
Deletes an Active Directory account rule
No Content
Unauthorized
Not found
{- "code": 401,
- "message": "Missing capability: role",
- "nottype": "authorization_error"
}
Retrieves the Active Directory account sync status
Success
Unauthorized
Not found
"NOT_SYNCED"
Lists all Active Directory accounts in a resource group
OK
Unauthorized
Not found
{- "list": [
- {
- "account_name": "string",
- "account_type": "SHARED",
- "brought_under_management_at": "2019-08-24T14:15:22Z",
- "display_name": "string",
- "distinguished_name": "string",
- "domain": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "email": "string",
- "first_name": "string",
- "last_name": "string",
- "last_rotation_at": "2019-08-24T14:15:22Z",
- "match_status": "MATCH",
- "matched_user": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "project": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "resource_group": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "sam_account_name": "string",
- "sid": "string",
- "upn": "string"
}
]
}
Retrieves an Active Directory account in a resource group project
OK
Unauthorized
Not found
{- "checkout_expiry_at": "2019-08-24T14:15:22Z",
- "checkout_status": "checked_out",
- "last_checkout_user": "string",
- "next_scheduled_password_rotation_reason": "string",
- "next_scheduled_password_rotation_timestamp": "2019-08-24T14:15:22Z",
- "account_name": "string",
- "account_type": "SHARED",
- "brought_under_management_at": "2019-08-24T14:15:22Z",
- "display_name": "string",
- "distinguished_name": "string",
- "domain": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "email": "string",
- "first_name": "string",
- "last_name": "string",
- "last_rotation_at": "2019-08-24T14:15:22Z",
- "match_status": "MATCH",
- "matched_user": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "project": {
- "id": "string",
- "missing": true,
- "name": "string",
- "type": "active_directory_connection"
}, - "resource_group": {
- "id": "string",
- "missing": true,
- "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
}