When someone joins, moves or leaves in Deel, you want that change reflected in your on-premise Active Directory without anyone touching it by hand. To connect Deel to Active Directory, Joinly reads each HR change in Deel through the Public REST API and applies it to your domain through the Joinly AD Agent — a lightweight connector that runs inside your network. Deel stays your source of truth; Joinly is the engine that keeps every account in the right OU, accurate and traceable.
Key takeaways
Deel stays your source of truth; Joinly applies every joiner, mover and leaver to on-premise Active Directory automatically across every worker type.
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 reads Deel’s worker types — EOR employee, direct payroll employee and contractor — and places each in the right target OU, and builds the sAMAccountName, UPN and distinguished name from your own rules.
Multi-country teams are handled correctly: workers across many legal entities and countries land in the correct OU on their own local start date, with contractors kept out of employee OUs.
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 | Deel (Deel HR) |
Target system | On-premise Active Directory (AD DS) |
Connection method | Deel Public REST API → Joinly AD Agent → Active Directory |
Agent requirement | Domain-joined Windows server with a GMSA, outbound HTTPS (443) only |
Supported events | Joiner, mover, leaver (incl. EOR, direct payroll and contractor workers, worker-type changes) |
Synced attributes | Name, sAMAccountName, UPN, mail, worker type, group, legal entity, location, job title, manager, distinguished name / OU, start and end date |
Real-time or batch | Frequent sync, multiple times per day |
Compliance | ISO 27001, NIS2-ready, GDPR (EU data centre) |
How does Joinly sync Deel to Active Directory?
Joinly reads each HR change in Deel in the cloud, then hands the action to the Joinly AD Agent inside your network, which makes the change in Active Directory. Deel holds the authoritative worker record — including the worker type, legal entity and group — while the agent is the only component that touches your domain.
Joiner. HR completes the hire in Deel — an EOR contract, a global-payroll direct employee or a contractor agreement. Joinly reads the new record, determines the role from worker type, group, legal entity and location, 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 — with a different OU and group set for a contractor than for a full employee.
Mover. When someone changes group or location, or is converted from contractor to EOR employee, 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 situation is removed, so permissions stay aligned with the actual engagement.
Leaver. On the end date recorded in Deel, Joinly instructs the agent to disable the AD account and optionally move it to a disabled-users OU. Each worker’s own local end date drives the timing, so an EOR contract in one country and a contractor agreement in another are each retired on their own day.
Example: A global design studio runs Deel and an on-premise AD across three offices. It hires a motion designer as an EOR employee with a start date next Monday and renews a freelance illustrator as a contractor. Joinly reads each Deel record, and on Monday the AD Agent creates the designer in the Studio > Design OU with the Design-Team group, while the contractor lands in a separate Contractors OU with a restricted group set. When the illustrator is later converted to a direct employee, the agent moves the object to the employee OU and swaps the groups the same day.
What manual AD account management costs
Without automation, every account starts as a Deel notification that an admin works through in Active Directory Users and Computers by hand — creating the object, choosing the OU, building the sAMAccountName, adding groups. Deel’s own SCIM and native integrations only reach cloud IdPs, not your on-premise AD, and they carry no group or worker-type logic, so every AD decision falls to people.
Onboarding delays. New joiners wait for an AD account and group access while a ticket sits in a queue, losing productive days in their first week — and with a distributed team the request often arrives in a different time zone than the admin.
Permissions that don’t keep up (privilege creep). When movers change group or convert from contractor to employee, 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 contractors and EOR contracts ending on many different local dates, it is easy to miss one.
Joinly vs. the Entra provisioning agent for AD
Deel’s own SCIM reaches only cloud IdPs, so provisioning Deel to on-premise AD usually means chaining Deel SCIM into Entra ID and out through Microsoft’s Entra provisioning agent. Here’s how that native path compares to the Joinly AD Agent for a Deel-driven AD setup.
Joinly AD Agent | Deel SCIM → Entra provisioning agent | |
|---|---|---|
Source | Reads the Deel Public REST API directly | Deel SCIM into Entra, then out to AD |
OU placement | Rule-based on worker type, group and entity | Single configured container; limited logic |
Role-to-group mapping | Built in, rule-based | Not available; Deel SCIM has no Group resource |
Worker-type handling | Different OU and groups for EOR, payroll and contractor | All workers treated the same |
Multi-country / multi-entity | Per-entity, per-country start and end dates | Single user stream, no entity logic |
sAMAccountName / UPN rules | Custom transformation with uniqueness fallback | Limited expression mapping |
Audit trail | Per-action logging tied to the HR source | Limited |
Watch-outs when connecting Deel to Active Directory
A few Deel-specific details decide whether this connection stays reliable at scale.
sAMAccountName uniqueness and length. AD limits the sAMAccountName to 20 characters and it must be unique across the domain. Joinly builds it from your rules with a fallback pattern, so duplicate names across countries never produce a collision or a truncated, unreadable login.
Mixed worker types and OU placement. A single Deel org holds EOR employees, direct payroll employees and contractors. They should not share an OU or a group set — a contractor often belongs in a separate, restricted OU. Joinly reads the worker type and places each user in the right OU, moving them when the type changes.
EOR vs direct employment. For an EOR worker, Deel’s own entity is the legal employer while the person works for your company. Joinly maps OUs and groups from your organisation’s group and location, not the Deel EOR entity, so a naive entity-to-OU rule doesn’t put people in the wrong place.
Multi-country and multi-entity timing. Workers span many legal entities and countries, each with its own start and end date. Joinly has the agent create or disable each account on that worker’s own local date rather than in one global batch.
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 Deel 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 a global design and product studio with around 700 people across six offices, running Deel for a mix of EOR employees and a rotating roster of freelance contractors, but still living in an on-premise Active Directory for its production and asset systems. Every new hire — whether an EOR designer or a freelance illustrator — starts as a Deel notification that IT processes by hand in AD, and freelancers too often end up in the same OUs and groups as full employees because there is no logic to tell them apart.
Connect Deel to Active Directory with Joinly and that work disappears. The Joinly AD Agent creates each EOR and payroll employee in the right OU on their local start date, builds a unique sAMAccountName, adds the correct security groups, and drops contractors into a separate restricted OU — then moves people on a transfer or worker-type change and disables accounts on the end date with a 30-day grace window, all driven by the HR change in Deel.
“Freelancers used to land in the same OU as staff and inherit access they never should have had. Now Joinly reads the Deel worker type and puts contractors in their own restricted OU on day one — and every account is ready the moment they start.” — Head of IT, global design and product studio
The outcome this setup is designed for: onboarding drops from days to zero touch, contractors and employees stay cleanly separated in AD, and the team can walk into its next NIS2 assessment with a complete, source-backed audit trail.
More than a connector
A standalone Deel 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 Deel 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 Deel integration in the Joinly marketplace
Open the Joinly marketplace and search for the Deel 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 Deel integration.
3. Follow the installation wizard
You may be redirected to integrations.joinly.app. Create an account there and enter your Deel connection details: a Deel API token (an organization token is recommended so Joinly can read every worker type) or OAuth credentials. All data is encrypted and stored securely.

Enter your Deel API token or OAuth credentials 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 the worker type, group and location, and build the sAMAccountName, userPrincipalName, mail, department and manager with Liquid templates.

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 Deel 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 Deel 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.
Which OU do new accounts land in?
The one your rules define. Joinly builds the distinguished name and OU placement from the Deel worker type, group and location — so EOR and payroll employees land in employee OUs and contractors in a separate restricted OU — and moves the object when someone transfers or changes worker type.
How is the sAMAccountName built and kept unique?
From your Liquid template, 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 Deel 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.


