What happened.
A former employee's account turned up in one of the company's tools months after they had left. It was found by accident. The managing director's next question was the one an insurer or a customer would ask: how do you know no other former staff can still log in?
What we found, and the technical detail
The company had a staff list and a main sign-in directory, and also a handful of tools that each kept their own list of users. When someone left, the main directory was updated. The tools were not.
We matched three lists against each other: the staff list, the sign-in directory and a user export from each of five named tools. Anyone who had left but still appeared in the directory or in any tool became a row, with the date they left, their last sign-in, and the exact line of the export it came from.
Accounts that did not appear on the staff list at all went on a separate list as questions for the owner, rather than being called leavers. And any tool that could not provide an export was named as not covered, so the list could not look more complete than it was.
Technical detail. The staff list was limited to five fields: name, work email, start date, leave date and manager. Matching was by work email across the directory and each export. Before the real run, the company's administrator planted ten test accounts for former staff in a set we had not seen, to check that the matching found all of them. We were given read-only exports and changed nothing.