When someone joins, moves or leaves in Paychex Flex, you want that change reflected in your on-premise Active Directory without anyone touching it by hand. To connect Paychex Flex to Active Directory, Joinly reads each worker change through the Paychex Flex API and applies it to your domain through the Joinly AD Agent — a lightweight connector that runs inside your network. Paychex Flex stays your source of truth; Joinly is the engine that keeps every account in the right OU, accurate and traceable, even with no IT team on hand.
Key takeaways
Paychex Flex stays your source of truth; Joinly applies every joiner, mover and leaver to on-premise Active Directory automatically — zero-touch, which matters most when no one on staff is an AD admin.
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 Paychex Flex structure — division, branch, department and location — to the right AD security groups and target OUs, and builds the sAMAccountName, UPN and distinguished name from your own rules.
Reads the full worker across the Paychex Flex API’s separate endpoints, so accounts land in the correct OU with complete data and frequent small structural changes are picked up on the next sync.
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 | Paychex Flex |
Target system | On-premise Active Directory (AD DS) |
Connection method | Paychex Flex 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. rehire, status change to leave, department move) |
Synced attributes | Name, sAMAccountName, UPN, mail, department, division, location, job title, supervisor, distinguished name / OU, hire and termination date |
Real-time or batch | Frequent sync, multiple times per day |
Compliance | ISO 27001, NIS2-ready, GDPR (EU data centre) |
How does Joinly sync Paychex Flex to Active Directory?
Joinly reads each worker change in Paychex Flex in the cloud, then hands the action to the Joinly AD Agent inside your network, which makes the change in Active Directory. Paychex Flex holds the authoritative worker record; the agent is the only component that touches your domain — and nobody on your team has to drive it.
Joiner. A new hire is added in Paychex Flex. Joinly reads the worker across the API’s separate worker, job, organization and communications endpoints, determines the role from department, location and job title, 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 hire date.
Mover. When a worker changes department, location or supervisor, 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 role is removed, so permissions stay aligned with the actual job.
Leaver. When a worker’s status flips to terminated on their termination date, Joinly instructs the agent to disable the AD account and optionally move it to a disabled-users OU. A status of leave keeps the account intact, so a temporary absence never locks someone out.
Example: A dental group runs Paychex Flex and an on-premise AD across four practices. It hires a hygienist with a hire date next Monday at its Riverside location. Joinly reads the worker, and on Monday morning the AD Agent creates the user in the Riverside > Clinical OU, sets a unique sAMAccountName, and adds the Clinical-Staff group. When the hygienist later transfers to the Downtown practice, the agent moves the object to the new OU and swaps the groups the same day — with no admin on site.
What manual AD account management costs
Without automation, every account starts as a note from the practice manager that someone works through in Active Directory Users and Computers by hand — creating the object, choosing the OU, building the sAMAccountName, adding groups. In a small Paychex Flex shop that someone usually isn’t a full-time AD admin, and there’s no native Paychex-to-AD provisioning at all, so every decision falls to a person.
Onboarding delays. New joiners wait for an AD account and group access while whoever handles IT finds time, losing productive days in their first week.
Permissions that don’t keep up (privilege creep). When workers change department or location, old security-group membership often stays attached, so people accumulate rights they no longer need — and no one reviews it.
Forgotten offboarding. Accounts that aren’t disabled on time are a security and audit risk — easy to miss entirely when offboarding depends on someone remembering to open ADUC.
Joinly vs. manual AD for a Paychex Flex shop
There is no native Paychex-to-AD provisioning, so the real-world alternative is doing it by hand in ADUC (or buying a third-party connector). Here’s how Joinly compares for a small Paychex Flex client running on-premise AD.
Joinly AD Agent | Manual ADUC / third-party connector | |
|---|---|---|
Source | Reads the Paychex Flex API directly | Re-keyed by hand, or a separate paid tool |
Full worker record | Joins worker, job, organization and email endpoints | Whatever the admin copies across |
OU placement | Rule-based on Paychex Flex structure | Chosen manually each time |
Role-to-group mapping | Built in, rule-based | Manual |
sAMAccountName / UPN rules | Custom transformation with uniqueness fallback | Typed by hand; collisions common |
Fits a no-IT shop | Zero-touch once configured | Depends on someone remembering |
Audit trail | Per-action logging tied to the HR source | None unless built by hand |
Watch-outs when connecting Paychex Flex to Active Directory
A few details decide whether this connection stays reliable in a small organisation with no dedicated IT.
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 — common in a small firm — never produce a collision or a truncated, unreadable login.
OU placement from a flat structure. Division, branch, department and location don’t map one-to-one to your OU structure, and small orgs change them often. Joinly builds explicit rules that place each user — and move them on a transfer — into the correct OU, and picks up new departments on the next sync.
The worker is split across several API endpoints. The Paychex Flex API returns the base worker, the job, the organization and the email separately. Joinly joins them into one complete record, so the AD object is created with its department and email rather than half-empty.
Worker status nuances. Paychex Flex distinguishes active, leave and terminated. Joinly maps leave to a kept-but-managed account and terminated to a disable, so a temporary absence never disables a live AD object.
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 — important when no one is auditing AD permissions.
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 Paychex Flex 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 dental group with around 120 staff across four practices, running Paychex Flex for payroll but still living in an on-premise Active Directory for its practice-management and imaging systems. There’s no IT department — the office manager handles AD between patients, processing each new hygienist or assistant by hand: creating the object, choosing the OU, building the login, adding groups. With seasonal cover and frequent moves between practices the work never stops, and new staff wait until day two or three for their account.
Connect Paychex Flex to Active Directory with Joinly and that work disappears. The Joinly AD Agent creates each user in the right OU on the hire date, builds a unique sAMAccountName, adds the correct security groups, moves people on a transfer between practices and disables accounts on the termination date with a 30-day grace window — all driven by the worker change in Paychex Flex, with no one on site touching AD.
“We never had an IT person to manage Active Directory. Now a hygienist’s account is simply ready in the right practice when they walk in, and when someone leaves it’s handled — we can show exactly which Paychex change created every login.” — Office Manager, dental group
The outcome this setup is designed for: onboarding drops from days to zero touch, privilege creep from old roles is eliminated, and the group can show a complete, source-backed audit trail without ever hiring an AD admin.
More than a connector
A standalone Paychex Flex 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 Paychex Flex 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 Paychex Flex integration in the Joinly marketplace
Open the Joinly marketplace and search for the Paychex Flex 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 Paychex Flex integration.
3. Follow the installation wizard
You may be redirected to integrations.joinly.app. Create an account there and enter your Paychex Flex connection details: your OAuth 2.0 client ID and client secret from the Paychex Developer Center, and your company ID. All data is encrypted and stored securely.

Enter your Paychex Flex OAuth client credentials 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 Paychex Flex structure, and build the sAMAccountName, userPrincipalName, mail, department and supervisor 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 Paychex Flex flows through the agent to AD. Add a threshold workflow that disables the account a set period after the termination 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 termination.
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 Paychex Flex 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.
We don’t have an IT team — can we still run the agent?
Yes. You install the agent once on a domain-joined server, pair it with a token, and after that it runs as a Windows service with no day-to-day administration. Joinly support can help with the one-time setup.
Which OU do new accounts land in?
The one your rules define. Joinly builds the distinguished name and OU placement from Paychex Flex structure — division, branch, department and location — and moves the object to a new OU automatically when someone transfers.
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 Paychex Flex 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.


