Offboard someone who leaves
Disable the account the same day. Disabling keeps the name in the history of everything the person did.
What you'll have at the end
An account that cannot sign in, with no session left, and a record of its last actions.
Steps
Look at the account.
./console exp:user:show janeThe output lists the groups, roles, active sessions and whether the account is protected.
Disable the account.
./console exp:user:disable jane --applyThe account cannot sign in. All its sessions end.
Check that no session is left.
./console exp:user:sessions janeRemove the passkeys of the account.
./console exp:user:2fa jane --remove-passkeys --applyRemove roles that were assigned to the account itself.
./console exp:user:roles list jane ./console exp:user:roles unassign Administrator jane --applyRoles that come from a group stay with the group.
Keep a copy of the account's recent history, if your policy asks for one.
./console exp:user:audit jane --from=2026-01-01 --format=json > var/tmp/jane-audit.jsonData protection: the file holds personal data. Store it where only the people who need it can read it.
Result
The person has no access. The content the person created stays, with the name.
Later
Remove the account only when nothing refers to it any more, for example after the retention period of your organization (Disable, enable and remove accounts).
When the account must also lose the roles of its groups, use Deactivate and move in the administration (Disable or "Deactivate and move"?).