Home / Developers / API reference / directory-syncs
directory-syncs
List directory syncs
GET /v1/organizations/{organizationId}/directory-syncs
- Operation ID
listDirSyncs- Authentication
- bearerAuth
- Authorization operation
directory_sync.read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organizationId | path | string (uuid) | required |
Request body
No request body.
Responses
200 OK
Headers: X-Correlation-ID (Server-generated request correlation ID (req_<uuid>).)
application/json
| Field | Type | Required | Description |
|---|---|---|---|
data | array of object | required | |
data[].sync_id | string (uuid) | optional | |
data[].organization_id | string (uuid) | optional | |
data[].directory_id | string (uuid) | optional | |
data[].provider | string | optional | |
data[].external_tenant | string | optional | |
data[].admin_subject | string | null | optional | |
data[].ldap | object | optional | LDAP/LDAPS directory connector configuration (provider ldap only; FR-113, ADR-037). TLS is mandatory (ldaps or starttls), a trust anchor (CA bundle and/or SPKI pins) is mandatory, the bind password is never accepted (credential_secret_ref), and the identifier is the flavor's immutable ID. |
data[].ldap.host | string | optional | |
data[].ldap.port | integer | optional |
|
data[].ldap.tls_mode | string | optional |
|
data[].ldap.ca_certificates_pem | string | optional | |
data[].ldap.pinned_spki_sha256 | array of string | optional |
|
data[].ldap.bind_dn | string | optional | |
data[].ldap.user_base_dn | string | optional | |
data[].ldap.group_base_dn | string | optional | |
data[].ldap.flavor | string | optional |
|
data[].ldap.id_attribute | string | optional |
|
data[].ldap.user_object_class | string | optional | |
data[].ldap.group_object_class | string | optional | |
data[].ldap.member_attribute | string | optional |
|
data[].ldap.required_group_dn | string | optional | |
data[].ldap.page_size | integer | optional |
|
data[].credential_secret_ref | string | optional | |
data[].status | string | optional | |
data[].interval_seconds | integer | optional | |
data[].run_count | integer (int64) | optional | |
data[].next_run_at | string (date-time) | optional | |
data[].last_run_at | string | null (date-time) | optional | |
data[].last_success_at | string | null (date-time) | optional | |
data[].consecutive_failures | integer | optional | |
data[].error_code | string | null | optional | |
data[].last_stats | object | optional | |
data[].full_sync_pending | boolean | optional | |
data[].created_at | string (date-time) | optional | |
data[].updated_at | string (date-time) | optional | |
next_cursor | string | optional | Opaque cursor; absent on the last page. |
Error responses
| Status | Description | Error codes | Body |
|---|---|---|---|
| 400 | Malformed request | invalid_request, invalid_url, secret_ref_not_bound | Error |
| 401 | Unauthenticated, step-up required (RFC 9470 challenge in WWW-Authenticate) or invalid portal link | unauthenticated, insufficient_user_authentication, portal_link_invalid | Error |
| 403 | Operation not permitted for this caller | forbidden, step_up_required, passkey_enrollment_required, passkey_identity_mismatch, dpop_production_environment_only, client_identity_required, workforce_identity_required, break_glass_not_permitted, elevation_invalid, elevation_expired, elevation_self_approval, impersonation_forbidden, impersonation_not_consented, impersonation_self_consent, explicit_consent_required, ticket_consent_invalid, ticket_consent_expired, ticket_consent_ended, ticket_consent_forbidden, recovery_self_approval, recovery_method_not_allowed, recovery_channel_not_allowed, approver_not_permitted, approver_is_requester, self_approval_forbidden | Error |
| 404 | Not found (or outside the caller's scope) | not_found, correlation_policy_missing | Error |
| 429 | Rate limited | rate_limited | Error |
| 500 | Internal error (no detail leaked) | internal_error | Error |
| 503 | Dependency unavailable (fail closed) | engine_unavailable, egress_unavailable, temporarily_unavailable | Error |
Create directory sync
POST /v1/organizations/{organizationId}/directory-syncs
- Operation ID
createDirSync- Authentication
- bearerAuth
- Authorization operation
directory_sync.write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organizationId | path | string (uuid) | required | |
Idempotency-Key | header | string | optional | Replays of the same key and request return the stored response (Idempotent-Replayed: true); the same key with a different request → 422 idempotency_key_reused.
|
Request body
Required.
application/json
| Field | Type | Required | Description |
|---|---|---|---|
provider | string | null | optional | |
directory_id | string | null | optional | |
external_tenant | string | null | optional | |
admin_subject | string | null | optional | |
ldap | object | optional | LDAP/LDAPS directory connector configuration (provider ldap only; FR-113, ADR-037). TLS is mandatory (ldaps or starttls), a trust anchor (CA bundle and/or SPKI pins) is mandatory, the bind password is never accepted (credential_secret_ref), and the identifier is the flavor's immutable ID. |
ldap.host | string | optional | |
ldap.port | integer | optional |
|
ldap.tls_mode | string | optional |
|
ldap.ca_certificates_pem | string | optional | |
ldap.pinned_spki_sha256 | array of string | optional |
|
ldap.bind_dn | string | optional | |
ldap.user_base_dn | string | optional | |
ldap.group_base_dn | string | optional | |
ldap.flavor | string | optional |
|
ldap.id_attribute | string | optional |
|
ldap.user_object_class | string | optional | |
ldap.group_object_class | string | optional | |
ldap.member_attribute | string | optional |
|
ldap.required_group_dn | string | optional | |
ldap.page_size | integer | optional |
|
credential_secret_ref | string | null | optional | |
interval_seconds | integer | null | optional | |
status | string | null | optional |
Responses
201 Created
Headers: X-Correlation-ID (Server-generated request correlation ID (req_<uuid>).); Idempotent-Replayed (true when the response is a stored idempotent replay.)
application/json
| Field | Type | Required | Description |
|---|---|---|---|
sync_id | string (uuid) | optional | |
organization_id | string (uuid) | optional | |
directory_id | string (uuid) | optional | |
provider | string | optional | |
external_tenant | string | optional | |
admin_subject | string | null | optional | |
ldap | object | optional | LDAP/LDAPS directory connector configuration (provider ldap only; FR-113, ADR-037). TLS is mandatory (ldaps or starttls), a trust anchor (CA bundle and/or SPKI pins) is mandatory, the bind password is never accepted (credential_secret_ref), and the identifier is the flavor's immutable ID. |
ldap.host | string | optional | |
ldap.port | integer | optional |
|
ldap.tls_mode | string | optional |
|
ldap.ca_certificates_pem | string | optional | |
ldap.pinned_spki_sha256 | array of string | optional |
|
ldap.bind_dn | string | optional | |
ldap.user_base_dn | string | optional | |
ldap.group_base_dn | string | optional | |
ldap.flavor | string | optional |
|
ldap.id_attribute | string | optional |
|
ldap.user_object_class | string | optional | |
ldap.group_object_class | string | optional | |
ldap.member_attribute | string | optional |
|
ldap.required_group_dn | string | optional | |
ldap.page_size | integer | optional |
|
credential_secret_ref | string | optional | |
status | string | optional | |
interval_seconds | integer | optional | |
run_count | integer (int64) | optional | |
next_run_at | string (date-time) | optional | |
last_run_at | string | null (date-time) | optional | |
last_success_at | string | null (date-time) | optional | |
consecutive_failures | integer | optional | |
error_code | string | null | optional | |
last_stats | object | optional | |
full_sync_pending | boolean | optional | |
created_at | string (date-time) | optional | |
updated_at | string (date-time) | optional |
Error responses
| Status | Description | Error codes | Body |
|---|---|---|---|
| 400 | Malformed request | invalid_request, invalid_url, secret_ref_not_bound | Error |
| 401 | Unauthenticated, step-up required (RFC 9470 challenge in WWW-Authenticate) or invalid portal link | unauthenticated, insufficient_user_authentication, portal_link_invalid | Error |
| 402 | The plan does not include this premium feature (FR-152), or one more object would exceed a limit the entitlement document sets (FR-185). A commercial refusal; nothing changed. | plan_feature_not_entitled, plan_limit_reached | Error |
| 403 | Operation not permitted for this caller | forbidden, step_up_required, passkey_enrollment_required, passkey_identity_mismatch, dpop_production_environment_only, client_identity_required, workforce_identity_required, break_glass_not_permitted, elevation_invalid, elevation_expired, elevation_self_approval, impersonation_forbidden, impersonation_not_consented, impersonation_self_consent, explicit_consent_required, ticket_consent_invalid, ticket_consent_expired, ticket_consent_ended, ticket_consent_forbidden, recovery_self_approval, recovery_method_not_allowed, recovery_channel_not_allowed, approver_not_permitted, approver_is_requester, self_approval_forbidden | Error |
| 404 | Not found (or outside the caller's scope) | not_found, correlation_policy_missing | Error |
| 409 | Conflict with current state | conflict, invalid_state_transition, stale_config_version, connection_not_validated, correlation_policy_missing, ambiguous_acknowledgment_required, too_many_credentials, trusted_certificate_limit, domain_conflict, policy_version_conflict, invalid_configuration, agents_disabled, inactive_principal_or_grant, elevation_expired, recovery_expired, impersonation_consent_expired, impersonation_consent_revoked, ticket_consent_ended, change_already_decided, change_expired, owner_exists, no_verified_owner, promotion_stale | Error |
| 413 | Request body too large | payload_too_large | Error |
| 422 | Semantically invalid request | invalid_request, invalid_url, dpop_confidential_only, invalid_configuration, idempotency_key_reused, certificate_rejected, protocol_mismatch, jwks_unusable, agent_policy_invalid, assurance_policy_invalid, passwordless_policy_invalid, attenuation_violation, unverified_source, domain_not_verified, invitation_invalid, overlap_unsupported, registration_denied | Error |
| 429 | Rate limited | rate_limited | Error |
| 500 | Internal error (no detail leaked) | internal_error | Error |
| 503 | Dependency unavailable (fail closed) | engine_unavailable, egress_unavailable, temporarily_unavailable | Error |
Get directory sync
GET /v1/organizations/{organizationId}/directory-syncs/{syncId}
- Operation ID
getDirSync- Authentication
- bearerAuth
- Authorization operation
directory_sync.read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organizationId | path | string (uuid) | required | |
syncId | path | string (uuid) | required |
Request body
No request body.
Responses
200 OK
Headers: X-Correlation-ID (Server-generated request correlation ID (req_<uuid>).)
application/json
| Field | Type | Required | Description |
|---|---|---|---|
sync_id | string (uuid) | optional | |
organization_id | string (uuid) | optional | |
directory_id | string (uuid) | optional | |
provider | string | optional | |
external_tenant | string | optional | |
admin_subject | string | null | optional | |
ldap | object | optional | LDAP/LDAPS directory connector configuration (provider ldap only; FR-113, ADR-037). TLS is mandatory (ldaps or starttls), a trust anchor (CA bundle and/or SPKI pins) is mandatory, the bind password is never accepted (credential_secret_ref), and the identifier is the flavor's immutable ID. |
ldap.host | string | optional | |
ldap.port | integer | optional |
|
ldap.tls_mode | string | optional |
|
ldap.ca_certificates_pem | string | optional | |
ldap.pinned_spki_sha256 | array of string | optional |
|
ldap.bind_dn | string | optional | |
ldap.user_base_dn | string | optional | |
ldap.group_base_dn | string | optional | |
ldap.flavor | string | optional |
|
ldap.id_attribute | string | optional |
|
ldap.user_object_class | string | optional | |
ldap.group_object_class | string | optional | |
ldap.member_attribute | string | optional |
|
ldap.required_group_dn | string | optional | |
ldap.page_size | integer | optional |
|
credential_secret_ref | string | optional | |
status | string | optional | |
interval_seconds | integer | optional | |
run_count | integer (int64) | optional | |
next_run_at | string (date-time) | optional | |
last_run_at | string | null (date-time) | optional | |
last_success_at | string | null (date-time) | optional | |
consecutive_failures | integer | optional | |
error_code | string | null | optional | |
last_stats | object | optional | |
full_sync_pending | boolean | optional | |
created_at | string (date-time) | optional | |
updated_at | string (date-time) | optional |
Error responses
| Status | Description | Error codes | Body |
|---|---|---|---|
| 400 | Malformed request | invalid_request, invalid_url, secret_ref_not_bound | Error |
| 401 | Unauthenticated, step-up required (RFC 9470 challenge in WWW-Authenticate) or invalid portal link | unauthenticated, insufficient_user_authentication, portal_link_invalid | Error |
| 403 | Operation not permitted for this caller | forbidden, step_up_required, passkey_enrollment_required, passkey_identity_mismatch, dpop_production_environment_only, client_identity_required, workforce_identity_required, break_glass_not_permitted, elevation_invalid, elevation_expired, elevation_self_approval, impersonation_forbidden, impersonation_not_consented, impersonation_self_consent, explicit_consent_required, ticket_consent_invalid, ticket_consent_expired, ticket_consent_ended, ticket_consent_forbidden, recovery_self_approval, recovery_method_not_allowed, recovery_channel_not_allowed, approver_not_permitted, approver_is_requester, self_approval_forbidden | Error |
| 404 | Not found (or outside the caller's scope) | not_found, correlation_policy_missing | Error |
| 429 | Rate limited | rate_limited | Error |
| 500 | Internal error (no detail leaked) | internal_error | Error |
| 503 | Dependency unavailable (fail closed) | engine_unavailable, egress_unavailable, temporarily_unavailable | Error |
Update directory sync
PATCH /v1/organizations/{organizationId}/directory-syncs/{syncId}
- Operation ID
updateDirSync- Authentication
- bearerAuth
- Authorization operation
directory_sync.write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organizationId | path | string (uuid) | required | |
syncId | path | string (uuid) | required | |
Idempotency-Key | header | string | optional | Replays of the same key and request return the stored response (Idempotent-Replayed: true); the same key with a different request → 422 idempotency_key_reused.
|
Request body
Required.
application/json
| Field | Type | Required | Description |
|---|---|---|---|
provider | string | null | optional | |
directory_id | string | null | optional | |
external_tenant | string | null | optional | |
admin_subject | string | null | optional | |
ldap | object | optional | LDAP/LDAPS directory connector configuration (provider ldap only; FR-113, ADR-037). TLS is mandatory (ldaps or starttls), a trust anchor (CA bundle and/or SPKI pins) is mandatory, the bind password is never accepted (credential_secret_ref), and the identifier is the flavor's immutable ID. |
ldap.host | string | optional | |
ldap.port | integer | optional |
|
ldap.tls_mode | string | optional |
|
ldap.ca_certificates_pem | string | optional | |
ldap.pinned_spki_sha256 | array of string | optional |
|
ldap.bind_dn | string | optional | |
ldap.user_base_dn | string | optional | |
ldap.group_base_dn | string | optional | |
ldap.flavor | string | optional |
|
ldap.id_attribute | string | optional |
|
ldap.user_object_class | string | optional | |
ldap.group_object_class | string | optional | |
ldap.member_attribute | string | optional |
|
ldap.required_group_dn | string | optional | |
ldap.page_size | integer | optional |
|
credential_secret_ref | string | null | optional | |
interval_seconds | integer | null | optional | |
status | string | null | optional |
Responses
200 OK
Headers: X-Correlation-ID (Server-generated request correlation ID (req_<uuid>).); Idempotent-Replayed (true when the response is a stored idempotent replay.)
application/json
| Field | Type | Required | Description |
|---|---|---|---|
sync_id | string (uuid) | optional | |
organization_id | string (uuid) | optional | |
directory_id | string (uuid) | optional | |
provider | string | optional | |
external_tenant | string | optional | |
admin_subject | string | null | optional | |
ldap | object | optional | LDAP/LDAPS directory connector configuration (provider ldap only; FR-113, ADR-037). TLS is mandatory (ldaps or starttls), a trust anchor (CA bundle and/or SPKI pins) is mandatory, the bind password is never accepted (credential_secret_ref), and the identifier is the flavor's immutable ID. |
ldap.host | string | optional | |
ldap.port | integer | optional |
|
ldap.tls_mode | string | optional |
|
ldap.ca_certificates_pem | string | optional | |
ldap.pinned_spki_sha256 | array of string | optional |
|
ldap.bind_dn | string | optional | |
ldap.user_base_dn | string | optional | |
ldap.group_base_dn | string | optional | |
ldap.flavor | string | optional |
|
ldap.id_attribute | string | optional |
|
ldap.user_object_class | string | optional | |
ldap.group_object_class | string | optional | |
ldap.member_attribute | string | optional |
|
ldap.required_group_dn | string | optional | |
ldap.page_size | integer | optional |
|
credential_secret_ref | string | optional | |
status | string | optional | |
interval_seconds | integer | optional | |
run_count | integer (int64) | optional | |
next_run_at | string (date-time) | optional | |
last_run_at | string | null (date-time) | optional | |
last_success_at | string | null (date-time) | optional | |
consecutive_failures | integer | optional | |
error_code | string | null | optional | |
last_stats | object | optional | |
full_sync_pending | boolean | optional | |
created_at | string (date-time) | optional | |
updated_at | string (date-time) | optional |
Error responses
| Status | Description | Error codes | Body |
|---|---|---|---|
| 400 | Malformed request | invalid_request, invalid_url, secret_ref_not_bound | Error |
| 401 | Unauthenticated, step-up required (RFC 9470 challenge in WWW-Authenticate) or invalid portal link | unauthenticated, insufficient_user_authentication, portal_link_invalid | Error |
| 403 | Operation not permitted for this caller | forbidden, step_up_required, passkey_enrollment_required, passkey_identity_mismatch, dpop_production_environment_only, client_identity_required, workforce_identity_required, break_glass_not_permitted, elevation_invalid, elevation_expired, elevation_self_approval, impersonation_forbidden, impersonation_not_consented, impersonation_self_consent, explicit_consent_required, ticket_consent_invalid, ticket_consent_expired, ticket_consent_ended, ticket_consent_forbidden, recovery_self_approval, recovery_method_not_allowed, recovery_channel_not_allowed, approver_not_permitted, approver_is_requester, self_approval_forbidden | Error |
| 404 | Not found (or outside the caller's scope) | not_found, correlation_policy_missing | Error |
| 409 | Conflict with current state | conflict, invalid_state_transition, stale_config_version, connection_not_validated, correlation_policy_missing, ambiguous_acknowledgment_required, too_many_credentials, trusted_certificate_limit, domain_conflict, policy_version_conflict, invalid_configuration, agents_disabled, inactive_principal_or_grant, elevation_expired, recovery_expired, impersonation_consent_expired, impersonation_consent_revoked, ticket_consent_ended, change_already_decided, change_expired, owner_exists, no_verified_owner, promotion_stale | Error |
| 413 | Request body too large | payload_too_large | Error |
| 422 | Semantically invalid request | invalid_request, invalid_url, dpop_confidential_only, invalid_configuration, idempotency_key_reused, certificate_rejected, protocol_mismatch, jwks_unusable, agent_policy_invalid, assurance_policy_invalid, passwordless_policy_invalid, attenuation_violation, unverified_source, domain_not_verified, invitation_invalid, overlap_unsupported, registration_denied | Error |
| 429 | Rate limited | rate_limited | Error |
| 500 | Internal error (no detail leaked) | internal_error | Error |
| 503 | Dependency unavailable (fail closed) | engine_unavailable, egress_unavailable, temporarily_unavailable | Error |
Delete directory sync
DELETE /v1/organizations/{organizationId}/directory-syncs/{syncId}
- Operation ID
deleteDirSync- Authentication
- bearerAuth
- Authorization operation
directory_sync.write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organizationId | path | string (uuid) | required | |
syncId | path | string (uuid) | required | |
Idempotency-Key | header | string | optional | Replays of the same key and request return the stored response (Idempotent-Replayed: true); the same key with a different request → 422 idempotency_key_reused.
|
Request body
Optional.
No body is read (send none or {}).
application/json
| Field | Type | Required | Description |
|---|---|---|---|
(body) | object | optional |
Responses
200 OK
Headers: X-Correlation-ID (Server-generated request correlation ID (req_<uuid>).); Idempotent-Replayed (true when the response is a stored idempotent replay.)
application/json
| Field | Type | Required | Description |
|---|---|---|---|
deleted | boolean | optional | |
sync_id | any | optional |
Error responses
| Status | Description | Error codes | Body |
|---|---|---|---|
| 400 | Malformed request | invalid_request, invalid_url, secret_ref_not_bound | Error |
| 401 | Unauthenticated, step-up required (RFC 9470 challenge in WWW-Authenticate) or invalid portal link | unauthenticated, insufficient_user_authentication, portal_link_invalid | Error |
| 403 | Operation not permitted for this caller | forbidden, step_up_required, passkey_enrollment_required, passkey_identity_mismatch, dpop_production_environment_only, client_identity_required, workforce_identity_required, break_glass_not_permitted, elevation_invalid, elevation_expired, elevation_self_approval, impersonation_forbidden, impersonation_not_consented, impersonation_self_consent, explicit_consent_required, ticket_consent_invalid, ticket_consent_expired, ticket_consent_ended, ticket_consent_forbidden, recovery_self_approval, recovery_method_not_allowed, recovery_channel_not_allowed, approver_not_permitted, approver_is_requester, self_approval_forbidden | Error |
| 404 | Not found (or outside the caller's scope) | not_found, correlation_policy_missing | Error |
| 409 | Conflict with current state | conflict, invalid_state_transition, stale_config_version, connection_not_validated, correlation_policy_missing, ambiguous_acknowledgment_required, too_many_credentials, trusted_certificate_limit, domain_conflict, policy_version_conflict, invalid_configuration, agents_disabled, inactive_principal_or_grant, elevation_expired, recovery_expired, impersonation_consent_expired, impersonation_consent_revoked, ticket_consent_ended, change_already_decided, change_expired, owner_exists, no_verified_owner, promotion_stale | Error |
| 413 | Request body too large | payload_too_large | Error |
| 422 | Semantically invalid request | invalid_request, invalid_url, dpop_confidential_only, invalid_configuration, idempotency_key_reused, certificate_rejected, protocol_mismatch, jwks_unusable, agent_policy_invalid, assurance_policy_invalid, passwordless_policy_invalid, attenuation_violation, unverified_source, domain_not_verified, invitation_invalid, overlap_unsupported, registration_denied | Error |
| 429 | Rate limited | rate_limited | Error |
| 500 | Internal error (no detail leaked) | internal_error | Error |
| 503 | Dependency unavailable (fail closed) | engine_unavailable, egress_unavailable, temporarily_unavailable | Error |
Resync directory sync
POST /v1/organizations/{organizationId}/directory-syncs/{syncId}:resync
Schedules an immediate run; "resync" also discards the delta state so the run is a full enumeration (objects absent from the provider are then deprovisioned).
- Operation ID
resyncDirectorySync- Authentication
- bearerAuth
- Authorization operation
directory_sync.write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organizationId | path | string (uuid) | required | |
syncId | path | string (uuid) | required | |
Idempotency-Key | header | string | optional | Replays of the same key and request return the stored response (Idempotent-Replayed: true); the same key with a different request → 422 idempotency_key_reused.
|
Request body
Optional.
Empty body or {}; unknown fields are rejected.
application/json
| Field | Type | Required | Description |
|---|---|---|---|
(body) | object | optional |
Responses
202 Accepted
Headers: X-Correlation-ID (Server-generated request correlation ID (req_<uuid>).); Idempotent-Replayed (true when the response is a stored idempotent replay.)
application/json
| Field | Type | Required | Description |
|---|---|---|---|
sync_id | string (uuid) | optional | |
organization_id | string (uuid) | optional | |
directory_id | string (uuid) | optional | |
provider | string | optional | |
external_tenant | string | optional | |
admin_subject | string | null | optional | |
ldap | object | optional | LDAP/LDAPS directory connector configuration (provider ldap only; FR-113, ADR-037). TLS is mandatory (ldaps or starttls), a trust anchor (CA bundle and/or SPKI pins) is mandatory, the bind password is never accepted (credential_secret_ref), and the identifier is the flavor's immutable ID. |
ldap.host | string | optional | |
ldap.port | integer | optional |
|
ldap.tls_mode | string | optional |
|
ldap.ca_certificates_pem | string | optional | |
ldap.pinned_spki_sha256 | array of string | optional |
|
ldap.bind_dn | string | optional | |
ldap.user_base_dn | string | optional | |
ldap.group_base_dn | string | optional | |
ldap.flavor | string | optional |
|
ldap.id_attribute | string | optional |
|
ldap.user_object_class | string | optional | |
ldap.group_object_class | string | optional | |
ldap.member_attribute | string | optional |
|
ldap.required_group_dn | string | optional | |
ldap.page_size | integer | optional |
|
credential_secret_ref | string | optional | |
status | string | optional | |
interval_seconds | integer | optional | |
run_count | integer (int64) | optional | |
next_run_at | string (date-time) | optional | |
last_run_at | string | null (date-time) | optional | |
last_success_at | string | null (date-time) | optional | |
consecutive_failures | integer | optional | |
error_code | string | null | optional | |
last_stats | object | optional | |
full_sync_pending | boolean | optional | |
created_at | string (date-time) | optional | |
updated_at | string (date-time) | optional |
Error responses
| Status | Description | Error codes | Body |
|---|---|---|---|
| 400 | Malformed request | invalid_request, invalid_url, secret_ref_not_bound | Error |
| 401 | Unauthenticated, step-up required (RFC 9470 challenge in WWW-Authenticate) or invalid portal link | unauthenticated, insufficient_user_authentication, portal_link_invalid | Error |
| 403 | Operation not permitted for this caller | forbidden, step_up_required, passkey_enrollment_required, passkey_identity_mismatch, dpop_production_environment_only, client_identity_required, workforce_identity_required, break_glass_not_permitted, elevation_invalid, elevation_expired, elevation_self_approval, impersonation_forbidden, impersonation_not_consented, impersonation_self_consent, explicit_consent_required, ticket_consent_invalid, ticket_consent_expired, ticket_consent_ended, ticket_consent_forbidden, recovery_self_approval, recovery_method_not_allowed, recovery_channel_not_allowed, approver_not_permitted, approver_is_requester, self_approval_forbidden | Error |
| 404 | Not found (or outside the caller's scope) | not_found, correlation_policy_missing | Error |
| 409 | Conflict with current state | conflict, invalid_state_transition, stale_config_version, connection_not_validated, correlation_policy_missing, ambiguous_acknowledgment_required, too_many_credentials, trusted_certificate_limit, domain_conflict, policy_version_conflict, invalid_configuration, agents_disabled, inactive_principal_or_grant, elevation_expired, recovery_expired, impersonation_consent_expired, impersonation_consent_revoked, ticket_consent_ended, change_already_decided, change_expired, owner_exists, no_verified_owner, promotion_stale | Error |
| 413 | Request body too large | payload_too_large | Error |
| 422 | Semantically invalid request | invalid_request, invalid_url, dpop_confidential_only, invalid_configuration, idempotency_key_reused, certificate_rejected, protocol_mismatch, jwks_unusable, agent_policy_invalid, assurance_policy_invalid, passwordless_policy_invalid, attenuation_violation, unverified_source, domain_not_verified, invitation_invalid, overlap_unsupported, registration_denied | Error |
| 429 | Rate limited | rate_limited | Error |
| 500 | Internal error (no detail leaked) | internal_error | Error |
| 503 | Dependency unavailable (fail closed) | engine_unavailable, egress_unavailable, temporarily_unavailable | Error |
Run directory sync
POST /v1/organizations/{organizationId}/directory-syncs/{syncId}:run
Schedules an immediate run; "resync" also discards the delta state so the run is a full enumeration (objects absent from the provider are then deprovisioned).
- Operation ID
runDirectorySync- Authentication
- bearerAuth
- Authorization operation
directory_sync.write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organizationId | path | string (uuid) | required | |
syncId | path | string (uuid) | required | |
Idempotency-Key | header | string | optional | Replays of the same key and request return the stored response (Idempotent-Replayed: true); the same key with a different request → 422 idempotency_key_reused.
|
Request body
Optional.
Empty body or {}; unknown fields are rejected.
application/json
| Field | Type | Required | Description |
|---|---|---|---|
(body) | object | optional |
Responses
202 Accepted
Headers: X-Correlation-ID (Server-generated request correlation ID (req_<uuid>).); Idempotent-Replayed (true when the response is a stored idempotent replay.)
application/json
| Field | Type | Required | Description |
|---|---|---|---|
sync_id | string (uuid) | optional | |
organization_id | string (uuid) | optional | |
directory_id | string (uuid) | optional | |
provider | string | optional | |
external_tenant | string | optional | |
admin_subject | string | null | optional | |
ldap | object | optional | LDAP/LDAPS directory connector configuration (provider ldap only; FR-113, ADR-037). TLS is mandatory (ldaps or starttls), a trust anchor (CA bundle and/or SPKI pins) is mandatory, the bind password is never accepted (credential_secret_ref), and the identifier is the flavor's immutable ID. |
ldap.host | string | optional | |
ldap.port | integer | optional |
|
ldap.tls_mode | string | optional |
|
ldap.ca_certificates_pem | string | optional | |
ldap.pinned_spki_sha256 | array of string | optional |
|
ldap.bind_dn | string | optional | |
ldap.user_base_dn | string | optional | |
ldap.group_base_dn | string | optional | |
ldap.flavor | string | optional |
|
ldap.id_attribute | string | optional |
|
ldap.user_object_class | string | optional | |
ldap.group_object_class | string | optional | |
ldap.member_attribute | string | optional |
|
ldap.required_group_dn | string | optional | |
ldap.page_size | integer | optional |
|
credential_secret_ref | string | optional | |
status | string | optional | |
interval_seconds | integer | optional | |
run_count | integer (int64) | optional | |
next_run_at | string (date-time) | optional | |
last_run_at | string | null (date-time) | optional | |
last_success_at | string | null (date-time) | optional | |
consecutive_failures | integer | optional | |
error_code | string | null | optional | |
last_stats | object | optional | |
full_sync_pending | boolean | optional | |
created_at | string (date-time) | optional | |
updated_at | string (date-time) | optional |
Error responses
| Status | Description | Error codes | Body |
|---|---|---|---|
| 400 | Malformed request | invalid_request, invalid_url, secret_ref_not_bound | Error |
| 401 | Unauthenticated, step-up required (RFC 9470 challenge in WWW-Authenticate) or invalid portal link | unauthenticated, insufficient_user_authentication, portal_link_invalid | Error |
| 403 | Operation not permitted for this caller | forbidden, step_up_required, passkey_enrollment_required, passkey_identity_mismatch, dpop_production_environment_only, client_identity_required, workforce_identity_required, break_glass_not_permitted, elevation_invalid, elevation_expired, elevation_self_approval, impersonation_forbidden, impersonation_not_consented, impersonation_self_consent, explicit_consent_required, ticket_consent_invalid, ticket_consent_expired, ticket_consent_ended, ticket_consent_forbidden, recovery_self_approval, recovery_method_not_allowed, recovery_channel_not_allowed, approver_not_permitted, approver_is_requester, self_approval_forbidden | Error |
| 404 | Not found (or outside the caller's scope) | not_found, correlation_policy_missing | Error |
| 409 | Conflict with current state | conflict, invalid_state_transition, stale_config_version, connection_not_validated, correlation_policy_missing, ambiguous_acknowledgment_required, too_many_credentials, trusted_certificate_limit, domain_conflict, policy_version_conflict, invalid_configuration, agents_disabled, inactive_principal_or_grant, elevation_expired, recovery_expired, impersonation_consent_expired, impersonation_consent_revoked, ticket_consent_ended, change_already_decided, change_expired, owner_exists, no_verified_owner, promotion_stale | Error |
| 413 | Request body too large | payload_too_large | Error |
| 422 | Semantically invalid request | invalid_request, invalid_url, dpop_confidential_only, invalid_configuration, idempotency_key_reused, certificate_rejected, protocol_mismatch, jwks_unusable, agent_policy_invalid, assurance_policy_invalid, passwordless_policy_invalid, attenuation_violation, unverified_source, domain_not_verified, invitation_invalid, overlap_unsupported, registration_denied | Error |
| 429 | Rate limited | rate_limited | Error |
| 500 | Internal error (no detail leaked) | internal_error | Error |
| 503 | Dependency unavailable (fail closed) | engine_unavailable, egress_unavailable, temporarily_unavailable | Error |