Make the HR system the source of truth
Create and remove accounts from the records of an HR system, so that a leaver loses access on the last day.
This page is a draft. The code exists, and not all of it has been run for this page yet. The page says what was checked.
What it shows
- You connect an HR system: Merge, Finch, BambooHR, Rippling, HiBob, Personio or Workday.
- A dry run lists what the sync would do, and changes nothing.
- A new employee gets an account, and joins the group of their department.
- An employee whose record says "terminated" is a leaver. LumoAuth deactivates the account, ends the sessions and tokens of the person, and suspends the agents that the person owns.
LumoAuth reads the employee directory on a schedule. Merge and Finch can also send a webhook, which starts the same sync. There is no code in this recipe: you set it up in the portal.
Before you start
- Check that your plan includes HRIS sync in the plans matrix.
- An API credential of your HR system that can read the employee directory. The form of each provider links to the page of the vendor console that creates it.
- The permission
settings.managein the portal.
Connect the HR system in the portal
The steps use BambooHR. The forms of the other providers ask for their own credentials.
- Open Settings, Integrations, then the tab HR & directory sync.
- On the card BambooHR, click Configure. The page Connect BambooHR opens.
- Enter the Company subdomain, the part before
.bamboohr.com, and the API key. - Under Sync behaviour, keep Deactivate leavers on. Switch on Add users to a group named after their department if you want department groups.
- Keep Dry run only on, and leave Enable BambooHR sync off for now.
- Click Connect BambooHR. The edit page of the connection opens.
- Click Test connection. The page shows what LumoAuth found, or the error of the vendor.
- Under Run a sync, click Dry run. The report appears under Sync runs, with the joiners, movers and leavers that a real sync would handle.
- When the report is right, switch off Dry run only, choose a Schedule, switch on Enable BambooHR sync, and click Save configuration.
These steps were written from the docs. Nobody has followed them for this page yet. The names of the pages, fields and buttons were read in the portal, and a BambooHR connection was saved and removed again. The connection test and a sync need an account at an HR system, which was not available.
Check the result
- Open the latest run under Sync runs. Each employee has an action: created, updated, deactivated, unchanged or skipped, with the reason.
- Run the sync again with no change in the HR system. Every employee is now "unchanged".
- Mark a test employee as terminated in the HR system, and run a sync. The account of the person is inactive, and their access and refresh tokens are revoked.
- An agent that the person owns is suspended. Its tokens are revoked, and the audit log has an
agent.suspended_with_ownerentry for it. The run report lists it underagents_suspended.
Limits
- LumoAuth never deletes a user. A leaver is deactivated, so that the audit trail and the owned agents are kept.
- The sync deactivates only accounts that it created or linked. An account that has the same email address and was made in another way is skipped, and so is every administrator.
- A rehire makes the account active again. The suspended agents stay suspended until an administrator activates them.
- Job title, manager and start date are not profile fields. Tokens and access policies cannot read them: use the department groups.
- The Admin API has no calls for HR connections. Each one is set up in the portal.