Added: sign the user out before anything else, in the console (Sessions > Logout all sessions) and in the REST commands.
A test showed why: an open session went straight to Mobile Authenticator Setup, without the password.
Added: what to do when the user has more than one Otp row, what the procedure doesn't reset, and the realm setup it assumes.
Changed: the title, to Reset a User's OTP Credential, which says exactly what the page resets.
Fixed: the order of the reset, in the admin console and in the REST API.
The guide deleted the OTP credential first and added Configure OTP second, which let the user sign in with the password alone between the two actions.
A test on Keycloak 26.8.2 confirmed it. The guide now adds the required action first: Keycloak then asks for a code until the deletion, and for a new authenticator after it.
Added: what the user needs before you start, and what to do if the password may also be known to someone else.
Changed: every screenshot caption now names its step and says what to look at, and step 5 tells you what to check instead of quoting Keycloak's success message.
Added:Reset Many Users with the Admin REST API.
After a change to the OTP policy, every user needs a reset, and the console does one at a time.
Every command ran as written against Keycloak 26.8.2.
Added: a warning that a PUT of a user's required actions replaces the whole list.
Found while testing the commands: sending CONFIGURE_TOTP alone removed a pending profile update.
First version, migrated from the help-center article How to reset 2FA: a concept, a how-to, a reference, a troubleshooting page, and a terminology list.