How to manage and update your MFA recovery codes
Summary
This guide helps you troubleshoot and resolve: How to manage and update your MFA recovery codes. Follow the steps below to fix the issue.
Common Causes
Multi-Factor Authentication (MFA) adds a critical layer of security to your business accounts. However, if you lose your mobile phone or the authenticator app is deleted, you may be locked out of your account. Recovery codes (also known as backup codes) serve as a "digital master key," allowing you to bypass the MFA prompt once to regain access and reset your security settings.
Recovery codes are typically 8-digit numeric codes generated by your account provider. Each code is single-use only; once a code has been used to enter your account, it becomes invalid and cannot be used again.
Generating Your Recovery Codes
It is essential to generate your recovery codes while you still have access to your primary MFA device. Follow these steps based on your primary account provider:
Microsoft 365 / Azure AD
Microsoft 365 and Azure AD do not use traditional "recovery codes." Instead, they use alternate sign-in methods. To add a backup method for your account:
- Sign in to your My Account portal at
myaccount.microsoft.com. - Select Security info from the left-hand navigation menu.
- Click Add sign-in method.
- Select an alternative method from the dropdown list, such as Phone, Email, or Authenticator app.
- Follow the prompts to verify and save the new method.
Google Workspace
- Log into your Google Account and navigate to
myaccount.google.com. - Select Security from the left sidebar.
- Under the How you sign in to Google section, click on 2-Step Verification. You may be asked to sign in again.
- Scroll down to the Backup codes section.
- Click the arrow next to Backup codes to expand the menu.
- Click Get backup codes.
- Save these codes to a secure location immediately.
Managing Recovery Codes for Small Businesses
For organisations managing multiple employees, recovery codes require a structured approach to prevent permanent account lockouts and ensure business continuity.
Code Storage and Quantity
- Generate a full set of backup codes for every user with MFA enabled.
- Store physical copies in a secure, fireproof safe or locked cabinet.
- Store digital copies in a corporate password manager (such as Bitwarden or LastPass) with restricted access.
- Avoid saving codes as plain text files on desktops or in shared network folders without encryption.
Sole Administrator Scenarios
If you are the sole administrator for your Microsoft 365 or Google Workspace tenant, losing access to your MFA device and recovery codes can result in a complete lockout of your business environment. We recommend:
- Designating a trusted secondary administrator where possible.
- Storing the primary administrator's recovery codes in a secure, accessible location known to at least one other trusted party.
- Documenting the MSP escalation path for emergency identity verification.
Terminated Employees
When an employee leaves your business, review their code access permissions immediately. If they had access to shared account recovery codes or were a delegated administrator, invalidate their codes and rotate any shared secrets they may have viewed.
How to Use a Recovery Code
If you cannot access your MFA device, follow these steps to get back into your account:
- Enter your email address and password on the login screen as usual.
- When prompted for the MFA code or app approval, select I can't use my Microsoft Authenticator app right now or Try another way.
- Select the option Use a backup code or Enter recovery code.
- Enter one of your unused 8-digit numeric codes into the field.
- Once logged in, immediately navigate to your security settings to register your new MFA device.
Managing and Updating Your Codes
To maintain a high level of security for your organisation, we recommend reviewing your recovery codes periodically.
When to rotate your codes
- If you suspect your printed or digital copy of the codes has been compromised.
- After an employee with access to these codes has left your business.
- Annually as part of a general security audit.
How to invalidate old codes
Generating a new set of recovery codes automatically invalidates all previously issued codes.
- Google Workspace: Return to the Backup codes section in your Google Account security settings and select Get new backup codes. This invalidates all previous codes immediately.
- Microsoft 365 / Azure AD: Remove the old alternate sign-in method from Security info in the My Account portal and add a new one. Conditional access policies may affect which recovery methods are available based on your organisation's configuration.
Troubleshooting
The recovery code is not being accepted
- Check for typos: Ensure you aren't confusing the number
0with the letterOor the number1with the letterI. - Check usage: Confirm that the specific code you are using hasn't been used previously. Codes are single-use only.
- Expired or invalidated codes: If you have generated a new set of codes, all previous codes are invalid. Use only the most recently generated set.
- Account Lockout: If you have entered the wrong code too many times, your account may be temporarily locked for security. Wait a few minutes and try again, or contact your administrator.
I have lost both my MFA device and my recovery codes
If you have no way to verify your identity, you will require an administrator to reset your MFA settings. If you are the sole administrator for your account, please Open a Ticket so our team can verify your identity and assist with a manual reset.
Compromised or stolen codes
If you suspect your recovery codes have been stolen or accessed by an unauthorised person:
- Sign in to your account immediately using a trusted device.
- Navigate to your security settings and generate a new set of recovery codes to invalidate the old set.
- Review your account sign-in activity for any unauthorised access.
- If you cannot sign in, contact your administrator or Open a Ticket for an emergency MFA reset.
For issues related to local machine access, please refer to our guide on Password reset (Windows login).
Still Having Issues?
💻 Open a Ticket