adsum API, directory login package (1.0.0)

Download OpenAPI specification:

License: GPL-2.0-or-later

What the directory login package adds to the published contract when it is installed (see WebVision\Adsum\Core\Shared\Api\Contract\OpenApiDocument): the connection of identity providers of type ldap, which the core's provider operations carry, and the sync of directory entries. Linted on its own.

Directory

LDAP and Active Directory providers.

Start a sync of a directory provider

The sync runs in the background; poll getLdapSyncRun. A dry run only reports. A run that would block more than a fifth of the linked accounts stops with status massBlockPrevented before blocking anyone and notifies the admins; start it again with confirmMassBlock to go ahead.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Request Body schema: application/json
optional
dryRun
boolean
Default: false
confirmMassBlock
boolean
Default: false

Responses

Request samples

Content type
application/json
{
  • "dryRun": false,
  • "confirmMassBlock": false
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "providerId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "status": "requested",
  • "dryRun": true,
  • "confirmMassBlock": true,
  • "counts": {
    },
  • "errors": [
    ],
  • "requestedAt": "2026-10-01T08:15:00+02:00",
  • "startedAt": "2026-10-01T08:15:00+02:00",
  • "finishedAt": "2026-10-01T08:15:00+02:00"
}

The sync runs of a directory provider, the newest first

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Changes still to be written to a directory provider

Write-backs that did not succeed yet, with the attributes they write (never their values), their attempts and the last error; each is retried with a growing pause, ten times at most.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

One sync run with its counts and errors

Authorizations:
bearerAuthsessionCookie
path Parameters
runId
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "providerId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "status": "requested",
  • "dryRun": true,
  • "confirmMassBlock": true,
  • "counts": {
    },
  • "errors": [
    ],
  • "requestedAt": "2026-10-01T08:15:00+02:00",
  • "startedAt": "2026-10-01T08:15:00+02:00",
  • "finishedAt": "2026-10-01T08:15:00+02:00"
}

Create the directory entry of a new employee

In the provider's OU for new entries, disabled in Active Directory and without any password attribute; enabling it and its first password stay with the directory's own processes. The employee is linked to it.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Request Body schema: application/json
required
Uuid (string) or null

The provider to create the entry in; without it, the company's only directory provider with an OU for new entries.

employeeId
required
string <uuid> (Uuid)

Responses

Request samples

Content type
application/json
{
  • "providerId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "providerId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "dn": "string",
  • "login": "string",
  • "state": "linked",
  • "values": {
    },
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Directory entries without an employee

The entries of the company's directory providers that the sync could not match to an employee by work e-mail address or personnel number, with their name and e-mail to create the employee or link one.

Authorizations:
bearerAuthsessionCookie
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Link an unmatched directory entry to an employee

The employee's account is used, or created without a password; the directory checks its password.

Authorizations:
bearerAuthsessionCookie
path Parameters
id
required
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b
header Parameters
Company-Id
string <uuid> (Uuid)
Examples: 0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b

Company context of the request. Defaults to the user's home company. A company the user has no role in yields 403.

Request Body schema: application/json
required
employeeId
required
string <uuid> (Uuid)

Responses

Request samples

Content type
application/json
{
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}

Response samples

Content type
application/json
{
  • "id": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "providerId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b",
  • "dn": "string",
  • "login": "string",
  • "state": "linked",
  • "values": {
    },
  • "employeeId": "0192a3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"
}