Skip to content

Retrieve a User Sync Job

Request

Retrieves a user sync job for an Active Directory connection

Security
bearerAuth
Path
team_namestringrequired

The name of your Team

ad_connection_idstringrequired

The UUID of an AD connection

ad_user_sync_task_settings_idstringrequired

The UUID of an existing user sync job

curl -i -X GET \
  'https://app.scaleft.com/v1/teams/{team_name}/integrations/ad_connections/{ad_connection_id}/user_sync_task_settings/{ad_user_sync_task_settings_id}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Bodyapplication/json
base_dnstring

The domain to search for user accounts

frequencystring

Indicates how often the user sync job runs. Possible values: 1, 6, 12, 24.

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

The UUID of the user sync job

Example:"226a1922-a1c2-4316-b84d-da4vf2e76t2a"
is_activeboolean

If true, enables the user sync job

LDAP_query_filterstring

Defines the criteria used to filter user accounts

namestring

The name of the user sync job

Example:"User Sync Job - 1"
recent_task_resultobject(ADUserSyncResults)read-only

The results from the most recent user sync job run

SID_Fieldstring

The AD attribute that defines the security identifier (SID) for accounts. Most AD tenants use objectSID.

Example:"objectsid"
start_hour_utcstring

A UTC timestamp that indicates the hour range when the user sync job runs. Only used if frequency is set to 24.

Example:"2022-08-24T14:15:22Z"
UPN_Fieldstring

The AD attribute that defines the User Principal Name (UPN) for accounts. Most AD tenants use userPrincipalName.

Example:"userprincipalname"
Response
{ "base_dn": "string", "frequency": 24, "id": "226a1922-a1c2-4316-b84d-da4vf2e76t2a", "is_active": true, "LDAP_query_filter": "string", "name": "User Sync Job - 1", "recent_task_result": { "ad_user_sync_task_settings_id": "226a1922-a1c2-4316-b84d-da4vf2e76t2a", "ad_user_sync_task_settings_name": "User Sync Job - 1", "ad_user_sync_test_request_id": "string", "created_at": "2022-08-25T00:00:00Z", "id": "195v2024-d7t2-4311-b84d-ha8vj2eb6tsa", "status": { … }, "task_state": "done", "updated_at": "2022-08-25T00:10:00Z" }, "SID_Field": "objectsid", "start_hour_utc": "2022-08-24T14:15:22Z", "UPN_Field": "userprincipalname" }