Sessions and sign-in security
These commands help when an account may have been taken over, when someone typed the password wrong too often, or when someone lost the phone with the authenticator app.
What you'll have at the end
An account signed out everywhere, unlocked, or with its second step reset.
Sessions
./console exp:user:sessions jane
./console exp:user:sessions jane --end --apply
./console exp:user:sessions jane --session=8f3a21 --applyWithout options the command lists the account's active tracked sessions, as Your devices shows them: the id, the sign-in method, the device, the browser, the approximate address and the last activity.
--endends all of them.--session=<id>ends one.
The audit records access.session.revoke. Sessions are tracked only where Your devices is switched on
(Your devices).
Note: Ending sessions does not stop the person from signing in again. When an account may have been taken over, also reset the password or disable the account.
Unlock an account
./console exp:user:unlock jane
./console exp:user:unlock jane --applyAn account is locked after more wrong passwords than [UserSettings] MaxNumberOfFailedLogin. The command resets the
failed sign-in counter, as Reset failed logins does in the administration. The password stays as it is. The
audit records access.user.unlock.
exp:user:list --state=locked lists every locked account.
Two-step sign-in and passkeys
./console exp:user:2fa jane
./console exp:user:2fa jane --reset --apply
./console exp:user:2fa jane --remove-passkeys --applyWithout options the command shows the state of two-step sign-in (the method, and whether it is active) and how many passkeys the account has.
--resetremoves the second step, for someone who lost the phone. The failed sign-ins are reset too. Where two-step sign-in is enforced, the next sign-in asks for a new setup. It needs the extensionsevenx_authentication_2fa.--remove-passkeysremoves all passkeys of the account.
The audit records access.user.two_factor.remove and the access.passkey.* events.
Attention: Reset the second step only for the person it belongs to. Confirm who is asking on a channel you already know, not on the channel the request came from.
Related pages
- Reset two-step sign-in after a lost phone
- Recover a locked-out administrator
- Your devices and sessions: what the person sees.
- Your account and signing in: two-step sign-in for the person.