Accounts in applications

Loket to Magister integration: staff account in Magister for a new employment in Loket, expiry date at the end date

With an integration between Loket and Magister, every new employee from payroll in Loket automatically gets a staff account in Magister, linked to their employee number and the right organisational unit. When the employment in Loket has an end date, KoppelHet sets it as the expiry date in Magister, so access to pupil data stops by itself.

Loket logoSourceLoketPayroll records a new employment or an end date in Loket
KoppelHetYour rules, set per field
Magister logoTargetMagister
  • Staff account with name and business email
  • Employee number as link to the staff record
  • Organisational unit from the department in Loket
  • Expiry date from the employment end date

How it works

Design, platform and support in one place

For Loket and Magister: a tailored integration, on our own platform, that we keep managing after go-live.

Design

Set per field before we build

Which data goes where, when, and what happens with exceptions. You approve the design; the quote follows from it.

More on how we work
Loket logoMagister logo
Detailed designWhat is transferred
  • employeeNumber→ employeeCode
  • firstName, prefix, lastName (volgens howToFormatLastName)→ name
  • businessEmailAddress→ emails
  • Afdeling van het dienstverband→ organizationalUnits

Platform

Every run visible, every error reported

Per integration and per employee you see what was processed. If something goes wrong, you get an alert with the reason.

More about the platform
HistoryLoket → Magister
Example
  • 09:003 changesOK
  • 08:00No changesOK
  • 05:00Alert with explanationResolved

Support

We keep it running

We handle vendor API changes. The people who built the integration also answer your questions.

Trust Center
ISO 27001
Support after go-liveOne team to turn to
  • 24/7 monitoring
  • API changes handled
  • Hosting in Amsterdam

The project

From first conversation to ongoing support

An integration starts from your HR process, not the API. We only build after you approve the design, and you choose the go-live moment.

The project in ten steps

  1. Step 1IntakeQuestions a consultant has prepared for your systems.
  2. Step 2Detailed designField by field what happens, with exceptions and test scenarios.
  3. Step 3Approval and quoteYou approve the design; the quote follows from it.
  4. Step 4Build and testOn our platform, then your acceptance test.
  5. Step 5Go-live and supportAt a moment you choose. After that we monitor it.

What the integration does

Schools and boards that administer payroll and staff in Loket and work with Magister create staff accounts in Magister by hand. People who leave often keep access to grades and pupil files until the administrator blocks the account.

  1. KoppelHet asks Loket per employer which employments have a higher version number since the previous round.
  2. For those employments KoppelHet reads name, business email, department and start and end date.
  3. KoppelHet searches Magister by employee number for an existing account.
  4. A new employee gets a staff account with name, email, employee number and organisational unit.
  5. An end date in Loket becomes the expiry date of the account in Magister.
Loket → KoppelHet → MagisterSOURCELoketTARGETMagisterKoppelHetmapping · logging · monitoringLoket → KoppelHet → MagisterSOURCELoketTARGETMagisterKoppelHetmapping · logging · monitoring
Out: Staff account with name and business email · Employee number as link to the staff record · Organisational unit from the department in Loket · Expiry date from the employment end date

What to watch for with Loket and Magister

  • Loket has no webhooks, but keeps a version number per employment that goes up with every change. KoppelHet stores the highest processed number and only requests employments with a higher number, so a large board does not have to go through all employees every night.
  • Magister only accepts name, email address, employee number and organisational unit at creation. Loket supports name usage with the partner's surname. KoppelHet composes the name according to the name usage in Loket before the account is created, because afterwards it can no longer be changed in Magister through the integration.
  • Magister accepts one email address, at creation only. Loket has a separate business email address next to the private one. KoppelHet only uses the business address, and only creates the account once it is filled in Loket.
  • With a write right on Magister's SCIM API, consent applies to the whole Magister environment, not per unit. If a board works with several Loket employers under one Magister environment, KoppelHet records per employer which units belong to it and writes nothing outside those units.
  • Magister automatically blocks an account on the expiry date. KoppelHet sets the end date from Loket as the expiry date straight away, even if it is months ahead, so access stops on the right day without a round having to run that day.
  • When an end date is removed again in Loket, for example on an extension, KoppelHet also removes the expiry date in Magister. If the account was already blocked, KoppelHet makes it active again, so the teacher does not have to be created again.
  • Magister cannot set a password at creation. KoppelHet does not send one either; how a new employee signs in for the first time is arranged by the school in Magister, for example through its own identity provider.

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 we will email you the price indication for this integration.

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

Frequently asked questions

What if an employee moves to another school of the board?

Magister only accepts the unit at creation. KoppelHet reports the move to the Magister administrator, who changes the unit in Magister.

Are pupils linked as well?

No. Only staff accounts can be created through Magister's SCIM API.

Does the citizen service number go to Magister?

No. Magister does not need it for an account, and KoppelHet does not request it in Loket.

Technical details for IT

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

  • Loket REST API v2 with OAuth (authorization code with refresh token): GET /v2/providers/employers/{employerId}/employees/employments/lastmodifiedversionnumbers with filter lastModifiedVersionNumber gt {version}, then the employments and employees (employeeNumber, firstName, prefix, lastName, prefixPartner, lastNamePartner, howToFormatLastName, businessEmailAddress, department, startDate, endDate). Event notifications are email recipients only.
  • Magister SCIM API (SCIM v2.0): POST User (staff only; name, emails, employeeCode and organizationalUnits at creation only; staff record created if needed), PATCH User for active and expiresOn, SEARCH on User. Scopes iam.scim.user.read, iam.scim.user.create, iam.scim.user.manage and iam.scim.user.attributes.manage; consent for write scopes applies to the whole tenant. Client through magister.nl/partners.

Which fields are transferred

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

Field in LoketField in MagisterNotes
employeeNumberemployeeCodeAt creation only
firstName, prefix, lastName (volgens howToFormatLastName)nameAt creation only
businessEmailAddressemailsOne address, at creation only
Afdeling van het dienstverbandorganizationalUnitsLookup table, at creation only
Einddatum dienstverbandexpiresOn
Dienstverband hersteld zonder einddatumexpiresOn leeg en active = true

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.