Loket to HubSpot integration: HubSpot users for commercial staff from Loket, removed after leaving
With an integration between Loket and HubSpot, a new employee in a commercial department in Loket gets a HubSpot user on their start date, with the permission set and team that belong to their department. After the employment end date in Loket, KoppelHet removes the HubSpot user, once the manager has been notified in advance to hand over customers and deals.
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
Organisations that run payroll in Loket and sales or customer service in HubSpot request HubSpot users by email from the HubSpot administrator. On departure a paid seat often stays taken for months, and a former colleague keeps access to customer data.
The HubSpot administrator creates the permission sets and assigns a permission set and team per Loket department.
Every morning KoppelHet fetches the changes to employee and employment per employer.
On the start date KoppelHet creates the HubSpot user with permission set, team and job title.
Five working days before the end date the manager is notified to hand over customers and deals.
After the end date KoppelHet removes the HubSpot user.
Out: HubSpot user with work email, first and last name · Permission set per department · Team per employer and department · Job title · Removal after the end date
What to watch for with Loket and HubSpot
Loket only reports events by email to people, not to other systems. KoppelHet therefore requests the changes per employer every morning and only creates a HubSpot user on the start date, even if payroll entered the employee weeks earlier.
A new employee can first exist in Loket as a draft. A HubSpot user with a paid seat costs money straight away. KoppelHet therefore creates no HubSpot user for a draft, but only once the employee is final and their start date has arrived.
According to HubSpot, permission sets must first exist in the app before an integration can assign them, and sets with a paid seat can only be changed by an app with the billing-write scope. KoppelHet does not request that scope; the HubSpot administrator decides which sets carry a paid seat, and KoppelHet only assigns existing sets.
Not everyone in Loket needs HubSpot. KoppelHet only creates users for the organisational units you designate as commercial, such as sales and customer service. If someone moves to another unit, the HubSpot administrator gets a notice instead of an automatic removal.
Through the API a HubSpot user can only be removed, not temporarily disabled. KoppelHet therefore only removes after the end date from Loket and warns the manager five working days in advance, so contacts and deals can still be assigned to a colleague.
In Loket employee numbers are only unique per employer. HubSpot can look up a user by email address. KoppelHet stores the HubSpot ID per employer and number and looks up by business email address in case of doubt, so two employees with the same number at two employers do not get mixed up.
Customers see their contact person's name in HubSpot emails. Loket keeps first name, prefix and surname separately, next to a formal name for the payslip. KoppelHet uses the first name in use as first name and puts the prefix before the surname.
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.
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
Why not everyone from Loket in HubSpot?
Because HubSpot asks for permissions and often a paid seat per user. Only the commercial departments get a user; adding departments is a line in the table.
Do leave and working hours go to HubSpot?
Not in the first version. Showing absence in HubSpot can be added later as an extension.
Technical details for IT
For those who want to know how it works under the hood: APIs, fields and sources used.
Loket through the Loket REST API with OAuth (authorization code flow with refresh token), per employer through the changes to employee and employment; fields include employeeNumber, firstName, prefix, lastName, organisational unit, job and employment start and end date. Consent by a dedicated Loket user with read rights only.
HubSpot through the user provisioning API (settings/v3/users; userId or email with idProperty=EMAIL): create with email, firstName, lastName, permission set and primary team, update and delete. Permission sets and roles set up in the app beforehand; sets with paid seats only with billing-write. Job title through the Users API (hs_job_title).
Which fields are transferred
The key fields. The full mapping is agreed per customer.
Field in Loket
Field in HubSpot
Notes
Werkgevercode en employeeNumber
Eigen registratie van KoppelHet bij de HubSpot-userId
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.