Sage HR logoActive Directory logo

Identity and access management

Sage HR to Active Directory integration: domain accounts per team, with an expiry date from the termination

With an integration between Sage HR and Active Directory, a new employee from Sage HR gets a domain account in their team's OU, with job title and manager, and the account expires on the last working day HR fills in on the termination. KoppelHet reads Sage HR through the API and a small program in your domain carries out the changes.

What the integration does

Organisations that use Sage HR and still have their own Windows domain often create domain accounts based on an email from HR. A termination in Sage HR then only reaches IT if someone remembers, and a team change not at all.

  1. We record the OU and the groups per Sage HR team.
  2. Every hour KoppelHet reads the active and terminated employees, with the team and position history.
  3. The program in the domain creates the account in the team's OU, with job title and manager.
  4. On a team change the program moves the account on the start date from the team history.
  5. On a termination the last working day becomes the expiry date; on a rehire the account opens again.
Sage HR → KoppelHet → Active DirectorySOURCESage HRTARGETActive DirectoryKoppelHetmapping · logging · monitoringSage HR → KoppelHet → Active DirectorySOURCESage HRTARGETActive DirectoryKoppelHetmapping · logging · monitoring
Out: Domain account per employee · OU and groups per team · Job title and manager · Separate OU for on-call workers · Expiry date from the termination

What to watch for with Sage HR and Active Directory

  • A termination in Sage HR requires a date that is the last working day, and a reason from a fixed list. KoppelHet sets that date as the expiry date on the domain account. The reason does not go to the domain; it stays in Sage HR.
  • Anyone who has left sits in a separate list in Sage HR and no longer among the active employees. KoppelHet reads both lists, so a departure also arrives if the termination was processed between two runs.
  • With team_history Sage HR gives a start and end date for each team change. The program moves the account to the new OU on the start date, not at the moment HR enters the change.
  • Sage HR marks on-call workers with a flag of its own. KoppelHet puts those accounts in a separate OU, so for example no VPN group applies there, or a different policy than for permanent employees.
  • According to Sage HR, signing in to Sage HR with an on-premises Active Directory is only possible with help from their engineering team. The accounts in the domain are created by the KoppelHet program that runs inside the domain itself.
  • After a rehire the employee is back among the active employees under the same ID. The program switches the old domain account on, removes the expiry date and moves it to the OU of the new team.

This integration is also part of joiner, mover, leaver.

How we build and run it

  • The integration runs on the KoppelHet platform, hosted in a data centre in the EU.
  • Every sync and every error is visible in the functional log; on an error your administrator is notified.
  • A change that cannot go through is not half-applied but queued for another attempt.
  • KoppelHet is ISO 27001 certified. Data travels encrypted and stays on the platform no longer than needed.
  • After go-live we manage the integration and adjust it when your process changes.
  • The integration fits next to your existing integration layer. Only the fields in the design are transferred; the platform keeps no register of its own.

Implementation, architecture and compliance

Implementation and price

This is not an app you switch on. We build the integration for your organisation on our platform, with building blocks we reuse on every project. So it is custom work that does not start from scratch.

A consultant prepares the intake and analyses both systems. We then record the mapping and exceptions field by field, test in the test or acceptance environment and go live at a moment you choose. Costs are a one-off amount for the setup and a monthly amount for platform, monitoring and support.

Price indication · Basic

Leave your work email and you see the price indication right away.

We only use your address to follow up on your question about this integration.

Frequently asked questions

Does anything need to be opened in the firewall?

No. The program in the domain only makes an outbound connection to the KoppelHet platform.

Technical details for IT

For those who want to know how it works under the hood: APIs, fields and sources used.

  • Sage HR REST API at {subdomain}.sage.hr/api with the X-Auth-Token header. GET /employees with team_history and position_history (email, employee_number, position, team, reports_to_employee_id, irregular_contract_worker), GET /terminated-employees (termination_date) and GET /termination-reasons. Pages with page and meta.next_page. No webhooks.
  • A KoppelHet agent on a Windows server in the domain fetches instructions through an outbound connection and writes employeeID, sAMAccountName, userPrincipalName, mail, givenName, sn, displayName, title, department, manager and accountExpires, manages groups and moves accounts between OUs.

Which fields are transferred

The key fields. The full mapping is agreed per customer.

Field in Sage HRField in Active DirectoryNotes
employee_numberemployeeIDAt most 16 characters
NaamgevingsregelsAMAccountNameAt most 20 characters
emailuserPrincipalName en mail
first_name en last_namegivenName, sn en displayName
positiontitle
team (team_history)OU, department en groepen
reports_to_employee_idmanager
irregular_contract_workerOU voor oproepkrachten
termination_dateaccountExpires

Related

Which systems do you want to connect?

Tell us which systems you use and what should happen automatically. Together we define the smallest working solution, with a clear design and a quote before building.