Skip to main content
Synchronize users and groups from Active Directory

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Query Parameters

dryRun
boolean

Reads the directory and reports what it found without writing anything. Leave it out and the synchronization is carried out for real.

Body

application/json
credentials
object

Directory access to use instead of the configured one, as baseDN, username and password - the search base and the bind identity. Anything given here overrides the stored login configuration for this one call; anything left out falls back to it. The server address itself always comes from the configuration and cannot be overridden.

options
object

Search options handed to the directory: scope for how deep below the base DN to look, sizeLimit for the greatest number of entries to accept, and timeLimit for how many seconds to wait for the server.

query
string

LDAP filter selecting the directory entries to read, matched against the subtree under the base DN. Leave it out to take everything the base DN contains.

Example:

"(objectclass=*)"

Response

Returns the directory entries that were read, mapped and grouped into users, groups and everything else.