When someone joins, moves or leaves in Employes, you want that change reflected in your on-premise Active Directory without anyone touching it by hand. To connect Employes to Active Directory, Joinly reads each HR change in the werknemersdossier through the Employes REST API and applies it to your domain through the Joinly AD Agent — a lightweight connector that runs inside your network. Employes stays your source of truth; Joinly is the engine that keeps every account in the right OU, accurate and traceable.
Key takeaways
Employes stays your HR and payroll source of truth; Joinly applies every joiner, mover and leaver to on-premise Active Directory automatically.
The Joinly AD Agent runs inside your network and needs only an outbound HTTPS connection — no inbound ports and no domain controller exposed to the internet.
Joinly maps Employes departments (afdeling) and job types (functie) to the right AD security groups and target OUs, and builds the sAMAccountName, UPN and distinguished name from your own rules.
Dutch name particles (surname_prefix) and multiple dienstverbanden per person are resolved with explicit rules, so the sAMAccountName stays unique and within AD’s 20-character limit.
Every action is logged for a complete audit trail, aligned with NIS2 and ISO 27001 — and the same setup extends to a hybrid Entra ID environment.
Quick facts
Source system | Employes (werknemersdossier) |
Target system | On-premise Active Directory (AD DS) |
Connection method | Employes REST API (v4) → Joinly AD Agent → Active Directory |
Agent requirement | Domain-joined Windows server with a GMSA, outbound HTTPS (443) only |
Supported events | Joiner, mover, leaver (incl. rehire and multiple employments) |
Synced attributes | Name, sAMAccountName, UPN, mail, department (afdeling), job type (functie), manager, distinguished name / OU, start and end date |
Real-time or batch | Frequent scheduled sync, multiple times per day |
Compliance | ISO 27001, NIS2-ready, GDPR (EU data centre) |
How does Joinly sync Employes to Active Directory?
Joinly reads each HR change in Employes in the cloud through its REST API, then hands the action to the Joinly AD Agent inside your network, which makes the change in Active Directory. The Employes werknemersdossier holds the authoritative employment record; the agent is the only component that touches your domain.
Joiner. HR completes the hire in Employes. Joinly reads the new employment record, determines the role from department and job type, and instructs the AD Agent to create the user in the correct OU, build the sAMAccountName and UPN from your rules, and add the right security groups — timed to the employment start date.
Mover. When someone changes department (afdeling), job type (functie) or contract, Joinly tells the agent to move the user to the matching OU, swap security-group membership and update attributes. Access that no longer fits the new position is removed, so permissions stay aligned with the actual job.
Leaver. On the end date recorded on the employment, Joinly instructs the agent to disable the AD account and optionally move it to a disabled-users OU. Where a person holds more than one dienstverband, the account is only disabled when the last active employment ends.
Example: An e-commerce and fulfilment company runs Employes and an on-premise AD across its warehouse and office. It hires a warehouse picker with a start date next Monday. Joinly reads the employment record, and on Monday morning the AD Agent creates the user in the Warehouse > Picking OU, sets the sAMAccountName to a unique pattern that keeps the tussenvoegsel readable, and adds the Warehouse-Floor group. When the picker later moves to customer service, the agent moves the object to the new OU and swaps the groups the same day.
What manual AD account management costs
Without automation, every account starts as an email from the payroll administrator that an admin works through in Active Directory Users and Computers by hand — creating the object, choosing the OU, building the sAMAccountName, adding groups. Because Employes has no native AD connector, the alternative is a custom script against its REST API, which still leaves the OU logic, name rules and role-to-group mapping for you to build and maintain.
Onboarding delays. New joiners wait for an AD account and group access while a request sits in someone’s inbox, losing productive days in their first week.
Permissions that don’t keep up (privilege creep). When movers change department or contract, old security-group membership often stays attached, so people accumulate rights they no longer need.
Forgotten offboarding. Accounts that aren’t disabled on time are a security and audit risk — and with more than one dienstverband it is easy to disable an account while another employment is still active.
Joinly vs. the Entra provisioning agent for AD
Employes has no native path to on-premise AD at all, so the realistic options are a custom script against its REST API or Microsoft’s Entra provisioning agent driven from a generic HR feed. Either way you’re building the logic yourself. Here’s how the Joinly AD Agent compares.
Joinly AD Agent | Custom script / Entra provisioning agent | |
|---|---|---|
Source | Reads the Employes REST API directly | You build the Employes feed yourself |
OU placement | Rule-based on department and job type | Single configured container; limited logic |
Role-to-group mapping | Built in, rule-based | Not available out of the box; manual |
Future-dated hires | Times creation to the employment start date | You code the date-window logic yourself |
Multiple employments | Keeps a single stable object per person | Risk of duplicate or wrongly disabled objects |
sAMAccountName / UPN rules | Custom transformation with uniqueness fallback | Limited expression mapping |
Audit trail | Per-action logging tied to the HR source | Only what you log yourself |
Watch-outs when connecting Employes to Active Directory
A few details decide whether this connection stays reliable at scale.
sAMAccountName uniqueness and the tussenvoegsel. AD limits the sAMAccountName to 20 characters and it must be unique across the domain, while Employes stores the surname prefix (van der, de) in its own field. Joinly builds the login from your rules with a fallback pattern, so duplicate names never collide and a name like ‘van der Berg’ produces a readable, non-truncated account.
OU placement from departments and job types. Employes departments (afdeling) and job types (functie) don’t map one-to-one to your OU structure. Joinly builds explicit rules that place each user — and move them on a transfer — into the correct OU.
Multiple employments. An employee can hold more than one dienstverband in Employes. Joinly applies rules to keep a single, stable AD object driven by the primary employment, so a second contract adds groups rather than creating a duplicate account — and ending one employment doesn’t disable someone who is still employed.
Poll-based sync and future dates. The Employes API has no webhooks, so provisioning runs on a frequent scheduled import. Joinly reads the start and end dates on the employment record and has the agent create or disable the account on the right day, not before.
Service-account permissions. The agent acts under a service account with delegated rights. Joinly works with least-privilege delegation scoped to the target OUs, so the agent can create, move and disable users without domain-admin rights.
Joinly handles each of these by default with custom mapping and transformation.
Always audit-ready
Every account action the Joinly AD Agent performs is logged in the Joinly cloud: who was affected, when it happened, which OU and groups changed and which Employes change triggered it. For NIS2 that matters directly: access can be traced back to an authorised HR source rather than an ad-hoc request. Joinly is ISO 27001 certified, runs in an EU data centre in Amsterdam, applies least-privilege by default, and is built to meet NIS2 and ISO 27001.
Example case
Take an e-commerce and fulfilment company with around 900 employees across a warehouse, a returns hub and a head office, running Employes for payroll but still living in an on-premise Active Directory for its warehouse and WMS logins. Every new picker, driver or support agent starts as an email from payroll that IT processes by hand in AD — creating the object, choosing the OU, building the login, adding groups. With peak-season contracts and frequent moves between the warehouse and customer service, the queue never empties, and new joiners wait until day two or three for their account.
Connect Employes to Active Directory with Joinly and that work disappears. The Joinly AD Agent creates each user in the right OU on the start date, builds a unique sAMAccountName that keeps the tussenvoegsel readable, adds the correct security groups, moves people on a transfer and disables accounts on the end date with a 30-day grace window — all driven by the HR change in Employes.
“During peak season we onboard dozens of pickers a week. Now an account is simply ready in the right OU when someone starts their shift, moves to customer service move themselves, and we can show the auditor exactly which Employes change created every account.” — Head of IT, e-commerce and fulfilment company
The outcome this setup is designed for: onboarding drops from days to zero touch, privilege creep from old roles is eliminated, and the team can walk into its next NIS2 assessment with a complete, source-backed audit trail.
More than a connector
A standalone Employes to Active Directory connection is a good start, but identity rarely stops at one target. The same Joinly setup extends to Entra ID for a hybrid environment and to your other systems, managing the complete chain from joiner to leaver with logging and governance built in. You review the exceptions; Joinly maintains the chain.
Schedule a demo
Installation guide
Follow these steps to connect Employes to your on-premise Active Directory with Joinly. Most of the setup happens in the cloud platform; the only local component is the lightweight Joinly AD Agent, which you install on a domain-joined server.
1. Create your account
Go to platform.joinly.app and create your account.
Note: charges may apply for using the platform after the trial period ends.

Sign up at platform.joinly.app to get started.
2. Find the Employes integration in the Joinly marketplace
Open the Joinly marketplace and search for the Employes integration.
Don’t see your system listed? Get in touch at support@koppelhet.nl and we’ll help you out.

Search the marketplace for the Employes integration.
3. Follow the installation wizard
You may be redirected to integrations.joinly.app. Create an account there and enter your Employes connection details: the Bearer token you generate in Employes (click your name in the bottom-left, then the token option) and your company ID. All data is encrypted and stored securely.

Enter your Employes Bearer token and company ID in the wizard.
4. Download the Joinly AD Agent
In the platform, go to Workflows → Select a workflow → Add action → Select ‘Provisioning via Agent’ and download the installer. The agent is a lightweight Windows service that connects your domain to the Joinly cloud over an outbound HTTPS connection only — there are no inbound ports to open.

Download the Joinly AD Agent installer from the provisioning settings.
5. Install the agent on a domain-joined server
Run the installer on a domain-joined Windows server that can reach a domain controller. The server needs outbound HTTPS (port 443) to the Joinly cloud and a GMSA account installation on your domain controller. Run through the installer; it registers the agent as a Windows service that starts automatically.
6. Pair the agent with your Joinly tenant
Copy the pairing token from Settings → Provisioning → AD Agent in the platform and paste it into the agent’s configuration screen. The agent uses the token to register securely with your tenant; once paired, its status shows as Connected in the platform.

Pair the agent with your tenant using the pairing token.
7. Set the target OU and attribute mapping
Configure where users are created and how their attributes are built. Map the distinguished name / OU from department and job type, and build the sAMAccountName, userPrincipalName, mail, department and manager with Liquid templates — referencing the surname_prefix field so the Dutch tussenvoegsel is handled correctly.

Select the OU and attribute mapping.
8. Configure your workflows
Create an onboarding (joiner) and offboarding (leaver) workflow with trigger-based execution, then an Identity updated workflow with a Create/update employee in Active Directory action so every change in Employes flows through the agent to AD. Add a threshold workflow that disables the account a set period after the end date (for example 30 days), optionally moving it to a disabled-users OU.

Create a trigger-based onboarding workflow.

A date-threshold workflow disables accounts a set number of days after the end date.
9. Network and firewall requirements
The agent needs outbound HTTPS (443) to the Joinly cloud and a GMSA account with PowerShell access to your domain controllers. No inbound firewall rules are required, and no domain controller is exposed to the internet. For high availability you can run the agent on more than one server.
Need cloud Entra ID provisioning as well? See our guide on connecting Employes to Microsoft Entra ID, or contact support at support@koppelhet.nl.
Frequently asked questions
Does the Joinly AD Agent need inbound firewall openings?
No. The agent only makes an outbound HTTPS connection to the Joinly cloud and acts on your domain controllers from inside the network through a GMSA with PowerShell access. There are no inbound ports to open and no domain controller is exposed to the internet.
What account does the agent run under?
A Group Managed Service Account (GMSA) with PowerShell access to your domain controllers, scoped to the target OUs so it can create, move and disable user objects without domain-admin rights.
How does Joinly connect to Employes for AD provisioning?
Joinly reads the public Employes REST API (v4) in the cloud using a Bearer token you generate in Employes, then the AD Agent applies each change inside your network. The agent never talks to Employes directly.
How is the sAMAccountName built and kept unique?
From your Liquid template, referencing the Employes surname_prefix so the tussenvoegsel is handled, with the generateUniqueUsername helper falling back to the next pattern on a collision, all within AD’s 20-character limit.
Can I provision to both Active Directory and Entra ID?
Yes. The same Joinly setup drives a hybrid environment — the AD Agent for on-premise AD and the native Entra connection for the cloud. See the Employes to Entra ID guide.
Can I run more than one agent for high availability?
Yes. You can install the agent on multiple domain-joined servers so provisioning continues if one server is unavailable.


