# Bank details, identity and right to work

> Who sees bank details and how a change is controlled; the identity and right-to-work check through your identity verification provider, what is kept, and when document copies are deleted.

Source: https://docs.ligament.ai/guides/onboarding/bank-and-identity/

## Bank details

Changing the account a salary is paid into is a favourite fraud: someone emails payroll pretending to be an employee. Onboarding makes it hard.

**Who sees the numbers.** The full account number, IBAN, sort code, routing number and BIC are visible to **payroll** (the **Onboarding: payroll** role) and to **the account holder**. Everyone else, workspace owners and admins included, sees the last four digits (`••••1234`). This can’t be lifted with a reveal button or a role override: only payroll’s permission (`hr.payroll`) shows them. Every time someone opens a bank account record, the read is written to the [access audit log](https://docs.ligament.ai/guides/access/index.md).

**Checks when saved.** An IBAN must pass its check digits; a BIC has 8 or 11 characters; a UK sort code has 6 digits and the account 8; a US routing number has 9. A mistyped account is refused before it’s saved. Onboarding doesn’t check with the bank that the account exists or belongs to the person (no bank verification service in this version).

**A new account** (from the portal, or from the employee’s own record once they have a login) is *pending verification*. Payroll is told, calls the person on a number they already hold, and selects **Verify**. Only payroll can verify: not the manager, not HR, not an admin, not the account holder.

**A change to an existing account**:

1.  sends the account back to *pending verification*, keeps the last four digits of the old account and counts the change;
2.  emails the person at the contact details they had **before** the change (“your bank details were changed… if this wasn’t you, contact payroll straight away”), so an attacker who also changed the email address doesn’t get the warning;
3.  asks payroll to verify the change before the next pay run.

**The payroll export** (payroll only, from the payroll page) is a CSV of every active account with columns for *verified* and *changed since the last export*. An unverified or changed account says so on its row. Each download is written to the access audit log.

## Identity and right to work

The identity step checks that the new hire is who they say they are and records their right to work. It runs through the workspace’s **identity verification connection**, in the new hire’s portal.

**Set up.** Install **Verify** from the App Store and add an **identity verification** connection in **Settings › Connections** (its API URL and key; with the webhook secret the provider reports results straight away, without it they’re fetched every few minutes). Use **Test** to check it answers. A sandbox key gives sandbox results, which never count as a right-to-work check. In **Onboarding › Settings** you can name the provider’s verification profile to use. Without a connection the portal asks for a photo of the document and HR reviews it (see *Without an identity connection* below).

**Consent first.** Before the check, the portal shows what is collected (a photo of the identity document, a short selfie video for the liveness check, the document’s chip where the phone can read it), why (to confirm identity and the right to work), what is kept (the result only, unless a copy is required), for how long, and who sees it (HR only). The check starts only after the new hire agrees; the time and the version of the consent text are recorded on the check.

**The check.** The provider’s check runs on the new hire’s phone: from a laptop, it shows a QR code to continue on the phone (the chip can only be read by a phone). When it’s done, the provider tells Onboarding the result.

**What is kept** on the right-to-work check (HR only): the decision, the verified name, date of birth, nationality, the document type, country and expiry date, the assurance level, the provider’s session reference and when the check finished. The images stay with the provider; the verification case in Verify holds only the decision.

| Result | What happens |
| --- | --- |
| Approved, no copy needed | The check is *confirmed* and the journey step is done |
| Approved, copy needed | The check waits in *HR review* until the new hire uploads the photo page and HR confirms |
| Not approved | The check is *not confirmed* with the provider’s reason; HR gets a task to ask the new hire to try again or check the original document in person |

**Re-verification.** When the document expires within the notice period (60 days by default, in Settings), HR gets a task to ask for a follow-up check.

### Document copies and how long they’re kept

Some countries require an employer to keep a copy of the document that proved the right to work. Onboarding keeps one **only where a right-to-work rule says so**: **Onboarding › Right-to-work rules** lists, per country of the work location (and employment type, if it differs), whether a check is needed, whether a copy must be kept and for how many years after the person leaves. Two rules are seeded: a default (check, no copy) and the United Kingdom (keep a copy for two years after the employment ends; confirm this with your adviser).

When a copy is kept:

-   it’s an attachment on the right-to-work check, visible to HR only (**Onboarding: administrator (HR)**), owners and admins included in the restriction;
-   every view or download of it is written to the access audit log;
-   when the person leaves, the check records the leaving date and the date the copy is due for deletion (last day + the rule’s years);
-   the nightly run deletes copies past that date and writes an audit record saying why. The check keeps its result and the date the copy was deleted.

### Without an identity connection

The portal asks the new hire to agree to the same consent and upload a photo of their document. HR reviews it, checks the original on day 1 and confirms the right to work on the check. The same copy rules apply.
