Try it

Bring someone back

Someone who left is coming back. Run it on the automation as I first built it and watch it break, then run it after the fix: the automation recognizes a former employee coming back, links a new sign-in account to the same employee record, gives access for the role they have now, and reverses the old file handover.

  1. Before the fix, the HR system could hire and terminate but not restore. A returning employee already existed, so the onboarding workflow stopped and the work went back to a person, including working out from memory which files had been handed to a colleague.
  2. After the fix, HR sets the person back to employed, and the sync recognizes a former employee coming back as a rehire.
  3. Preflight checks match them to their old record, find their old account, check their old email address is free, and look up where their files and mail went when they left.
  4. Account path: a sign-in account is set up and linked to the same employee record, access comes from the role they have now, IT approves it, and app accounts are prepared, all switched off until the start date. (In this example the old account was deleted 30 days after they left.)
  5. Handover path: the colleague who received their files says what they’re still working on, the person accountable for the data decides what goes back, IT returns or shares those items and records the decision, and a laptop ships. A ready check the day before confirms there is one identity, no unapproved former access came back, and the returned data matches the owner’s decision.

Why it’s built this way

People don’t move through a company in a straight line. They leave and come back, change roles, go on leave. An automation built for a line, hire at one end and leave at the other, does exactly what it was built to do, passes every test, and still fails here.

A returning employee should be one identity, not two. Two accounts for one person split their history, can create duplicate accounts and licences downstream, and leave an access review unable to see they’re the same person. So the match against former employees runs before anything is created.

Access comes from the role they’re returning to. What they had before belonged to their old job, and restoring it would bring back exactly the access an access review is meant to remove.

Offboarding moved their work to a colleague, and that was right at the time. Undoing it is its own step with its own owner, because the colleague may have kept working in those files.

Before and after

Before
The automation could hire and it could terminate. A returning employee already existed in the HR system, so the run stopped and the work went back to a person, including working out from memory which files had gone to which colleague.
After
A former employee set back to employed is recognized as a rehire. They keep one identity, get access from the role they have now, and their old work comes back through a defined path.

What it’s based on

This is the rehire case from my own automation. The pipeline could hire and terminate, a returning employee broke it, and I fixed it by making the sync recognize a former employee set back to employed as a rehire, plus a defined path for reversing the data handover. The details in the “after the fix” problems are standard practice from these sources: