SYNERGY
Chapters

15.3Base paths

Last updated

The table lists the main areas of the machine API. Each area holds several endpoints; the OpenAPI document (see "OpenAPI and Swagger" below) lists every route with its parameters.

Base pathWhat it covers
/ad/usersUsers: search, read, create, update, delete, enable, disable, unlock, password reset and change, account expiry, group membership, move, rename, SPNs, batch
/ad/groupsGroups: search, read, create, update, delete, members, move, rename, batch
/ad/computersComputer accounts: search, read, create, update, delete, enable, disable, unlock, password reset, account expiry, linked service accounts, move, rename, SPNs
/ad/organization-unitsOrganizational units: search, read, create, update, delete, move, rename, protection from deletion, bulk enable or disable of the accounts inside, batch
/ad/objectsAny directory object by GUID: search, look-up by distinguished name, read, create, update, move, rename, delete, access control lists, delegations, batch
/ad/accounts/search, /ad/computers/accounts/searchUser and computer accounts by state: locked out, disabled, expired, inactive and others
/ad/service-accountsManaged and group managed service accounts
/ad/deleted-objectsDeleted objects (Recycle Bin): list, check, restore. Needs the Recycle Bin module on the licence.
/ad/domain, /ad/forest, /ad/root-dse, /ad/directory-contextDomain, forest and RootDSE information
/ad/domain-controllers, /ad/sites, /ad/subnets, /ad/site-links, /ad/trustsReplication topology and trusts
/ad/optional-features, /ad/kds-root-keysOptional features and KDS root keys
/ad/domain/password-policy, /ad/fine-grained-password-policiesThe domain password policy and fine-grained password policies
/ad/delegation-templatesNamed delegation templates
/ad/{users,groups,computers,organization-units,objects}/schemaThe attributes each object type accepts
/saved-ldap-filtersShared saved LDAP filters, and running them
/operationsYour own queued operations; with the matching permissions, the operations log and operation policies
/healthLiveness check, no credential needed
/metadataVersion information; needs any valid credential

The installation's own administration (platform users, roles, API keys, notifications, single sign-on, licence, updates) is also reachable on /api for automation, with the corresponding permissions, but most integrations need only the /ad, /saved-ldap-filters and /operations areas.

Common Active Directory routes

Method and pathWhat it doesPermission
GET /ad/users?baseDn=…Search users under a containerad:users:read
GET /ad/users/{id}Read one userad:users:read
POST /ad/usersCreate a userad:users:create
PATCH /ad/users/{id}Update a userad:users:update
DELETE /ad/users/{id}Delete a userad:users:delete
POST /ad/users/{id}/enable, /disable, /unlockChange account statead:users:update
POST /ad/users/{id}/reset-passwordSet a new passwordad:users:update
POST /ad/users/{id}/groupsAdd the user to a groupad:groups:update
GET /ad/groups/{id}/membersList membersad:groups:read
POST /ad/groups/{id}/membersAdd a memberad:groups:update
PATCH /ad/objects/{id}/moveMove an objectad:objects:update
PATCH /ad/users/{id}/moveMove a user, refusing any object that is not a userad:users:update
GET /ad/objects/{id}/aclRead an access control listad:acl:read
GET /saved-ldap-filters/{id}/resultsRun a saved filtersavedfilters:execute
GET /operations/{id}Poll one of your own operationsoperations:waiting:list

Move and rename exist both on /ad/objects/{id} and on the typed areas (/ad/users, /ad/groups, /ad/computers, /ad/organization-units). The typed routes check that the GUID belongs to an object of that type and answer 404 otherwise, so a wrong ID cannot move the wrong object; prefer them when you know the type. A rename changes the object's name in the directory tree only, not its logon name.

Objects are addressed by their objectGUID in the path. Every {id} must be a GUID; any other value does not match a route and returns 404.

Two endpoint families exist only on the machine surface: the twelve batch endpoints (described below) and the single sign-on callbacks used by identity providers.

Last updated

Did this page help you?