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.
Step 1IntakeQuestions a consultant has prepared for your systems.
Step 2Detailed designField by field what happens, with exceptions and test scenarios.
Step 3Approval and quoteYou approve the design; the quote follows from it.
Step 4Build and testOn our platform, then your acceptance test.
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.
KoppelHet asks Loket per employer which employments have a higher version number since the previous round.
For those employments KoppelHet reads name, business email, department and start and end date.
KoppelHet searches Magister by employee number for an existing account.
A new employee gets a staff account with name, email, employee number and organisational unit.
An end date in Loket becomes the expiry date of the account in Magister.
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.
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.
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
€ 0.000 – € 00.000
€ 000 per month
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.
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.