Connect Remote to Active Directory (on-premise)

Connect Remote to Active Directory (on-premise)

Connect Remote to Active Directory (on-premise)

When someone joins, moves or leaves in Remote, you want that change reflected in your on-premise Active Directory without anyone touching it by hand. To connect Remote to Active Directory, Joinly reads each employment change through the Remote API and applies it to your domain through the Joinly AD Agent — a lightweight connector that runs inside your network. Remote stays your source of truth for EOR employees, direct employees and contractors; Joinly is the engine that keeps every account in the right OU, accurate and traceable.

Key takeaways

  • Remote stays your source of truth; Joinly applies every joiner, mover and leaver to on-premise Active Directory automatically from the Remote API.

  • 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 Remote’s employment_type and legal entity to the right AD security groups and target OUs, and builds the sAMAccountName, UPN and distinguished name from your own rules.

  • Worker types are kept distinct — EOR employees, direct employees and contractors land in different OUs and groups, and accounts are created on the move to active and disabled when the employment is archived.

  • 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.

Remote

Joiner

Mover

Leaver

On-premise Active Directory (AD DS)

Quick facts

Source system

Remote (Remote HR)

Target system

On-premise Active Directory (AD DS)

Connection method

Remote 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 employees, direct employees and contractors)

Synced attributes

Name, sAMAccountName, UPN, mail, job title, department, manager, legal entity, country, 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 Remote to Active Directory?

Joinly reads each employment change in Remote in the cloud through the Remote API, then hands the action to the Joinly AD Agent inside your network, which makes the change in Active Directory. Remote holds the authoritative employment record; the agent is the only component that touches your domain.

  1. Joiner. HR completes the hire in Remote and the employment moves to an active status. Joinly reads the record, determines the role from job title, department, country and legal entity, checks the employment_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 start of active employment.

  2. Mover. When someone changes job title, department, country or legal entity in Remote — or converts from contractor to 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 position is removed, so permissions stay aligned with the actual role.

  3. Leaver. When a Remote employment reaches its termination_date and moves to ‘archived’, Joinly instructs the agent to disable the AD account and optionally move it to a disabled-users OU. Because a person can hold more than one engagement, an account is only disabled when their last active employment ends.

Example: An international NGO runs Remote and an on-premise AD across its country offices. It hires a programme coordinator in Kenya as an EOR employee with a start date next Monday. Joinly reads the Remote employment, and when it goes active the AD Agent creates the user in the KE-Programmes OU, sets a unique sAMAccountName, and adds the Field-Staff group. When a short-term consultant is later engaged as a contractor, the agent places that account in a separate Contractors OU with a limited group set instead of full staff access.

What manual AD account management costs

Without automation, every account starts as a note from HR that an admin works through in Active Directory Users and Computers by hand — creating the object, choosing the OU, building the sAMAccountName, adding groups. You can export from Remote or script against its API, but that leaves the decisions — which worker type, which country’s OU, which groups — to people, and it drifts the moment the workforce changes.

  • Onboarding delays. New joiners wait for an AD account and group access while a request sits in a queue, losing productive days in their first week — and a cross-border EOR hire is exactly the kind that gets missed.

  • Permissions that don’t keep up (privilege creep). When movers change role or country, 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 — easy to miss when an offboarding in Remote is just one archived employment among many countries.

Joinly vs. a scripted Remote-to-AD integration

Remote’s own integrations point inward, toward HRIS and finance tools, and it doesn’t ship an on-premise AD provisioning connector. So the realistic alternative is a home-grown script that pulls the Remote API and runs PowerShell against your domain. Here’s how the two compare for an on-premise AD setup.


Joinly AD Agent

Scripted Remote API → PowerShell

Source

Reads the Remote API directly

Reads the Remote API directly

OU placement

Rule-based on legal entity, country and worker type

Single container or hand-coded logic

Role-to-group mapping

Built in, rule-based

Custom code you write and maintain

Worker-type handling

EOR / direct / contractor split by employment_type

Hand-coded filters that break on new types

Lifecycle timing

Creates on active, disables on archived

Fires on record creation unless you build it

sAMAccountName / UPN rules

Custom transformation with uniqueness fallback

Whatever your script implements

Audit trail

Per-action logging tied to the HR source

Whatever your script happens to log

Watch-outs when connecting Remote to Active Directory

A few Remote-specific details decide whether this connection stays reliable across countries and worker types.

  • sAMAccountName uniqueness and length. AD limits the sAMAccountName to 20 characters and it must be unique across the domain — a real risk with a large, multi-country workforce full of similar names. Joinly builds it from your rules with a fallback pattern, so duplicate names never produce a collision or a truncated, unreadable login.

  • OU placement from legal entity and worker type. Remote’s countries, legal entities and worker types don’t map one-to-one to your OU structure, and an EOR employee, a direct employee and a contractor shouldn’t share an OU. Joinly builds explicit rules that place each user — and move them on a transfer or conversion — into the correct OU.

  • Mixed worker types in one tenant. EOR employees, direct-payroll employees and contractors all live under the same Remote company. Joinly reads employment_type so a contractor gets a limited AD profile and its own groups rather than full staff access.

  • Employment lifecycle timing. A Remote hire passes through ‘created’ and ‘invited’ before it becomes ‘active’, and flips to ‘archived’ on the termination_date. Joinly has the agent create the account when employment goes active and disable it when it is archived, 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 Remote 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 international NGO with around 1,800 staff across a dozen country offices, running Remote for its EOR employees and contractors but still living in an on-premise Active Directory for its case-management and file systems. Every new field worker, coordinator or short-term consultant starts as a note from HR that IT processes by hand in AD — creating the object, picking the country OU, building the login, adding groups. With rotating programme staff and frequent transfers between offices, the queue never empties, and new joiners in a new country wait days for access.

Connect Remote to Active Directory with Joinly and that work disappears. The Joinly AD Agent creates each user in the right country OU when their employment goes active, builds a unique sAMAccountName, adds the correct security groups, keeps contractors in a separate OU with limited access, moves people on a transfer, and disables accounts when the employment is archived on the termination date — all driven by the change in Remote.

“We hire in countries where we’ve never run IT before, and the old manual routine couldn’t keep up. Now a coordinator in Kenya has an account in the right OU on day one, a consultant never lands in the staff groups by accident, and we can show the auditor exactly which Remote change created every account.” — Head of IT, international NGO

The outcome this setup is designed for: onboarding drops from days to zero touch across every country office, contractors and staff 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 Remote 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 manual

Installation manual

Connect Remote to Active Directory (on-premise)

Connect Remote to Active Directory (on-premise)

Installation guide

Follow these steps to connect Remote 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.


Joinly account creation screen at platform.joinly.app


Sign up at platform.joinly.app to get started.

2. Generate your Remote API token

In Remote, a company admin or owner goes to Company → Company Settings → Integrations & APIs → Integrations, opens the Remote API card and clicks Generate API token. Use a production (ra_live_) token and keep it safe for the wizard.

Don’t see the option? Only company admins and owners can create or revoke API tokens.

3. Find the Remote integration in the Joinly marketplace

Open the Joinly marketplace and search for the Remote integration.

Don’t see your system listed? Get in touch at support@koppelhet.nl and we’ll help you out.


Joinly marketplace showing available HR integrations


Search the marketplace for the Remote integration.

4. Follow the installation wizard

You may be redirected to integrations.joinly.app. Create an account there and enter your Remote connection details: paste the ra_live_ API token you generated. All data is encrypted and stored securely.


Joinly installation wizard for entering Remote connection details


Enter your Remote API token in the wizard.

5. 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.


Joinly platform screen to download the AD Agent installer


Download the Joinly AD Agent installer from the provisioning settings.

6. 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.

7. 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.


Joinly AD Agent pairing screen with a connection token


Pair the agent with your tenant using the pairing token.

8. 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 legal entity, country and employment_type, and build the sAMAccountName, userPrincipalName, mail, department and manager with Liquid templates.


Joinly field mapping screen for Remote to Active Directory attributes


Select the OU and attribute mapping.

9. 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 Remote 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.


Joinly workflow editor creating an employee onboarding workflow


Create a trigger-based onboarding workflow.


Creating a threshold workflow that runs days after the termination date


A date-threshold workflow disables accounts a set number of days after termination.

10. 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 Remote 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 Remote’s legal entity, country and employment_type, so an EOR employee, a direct employee and a contractor each land in the right OU, and the object moves 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 — which matters for a large, multi-country Remote workforce.

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 Remote 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.

Request installation support