Home › Knowledgebase › KB-334

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.

Quick Tip: Need immediate assistance? 💻 Open a Ticket

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:

  1. Sign in to your My Account portal at myaccount.microsoft.com.
  2. Select Security info from the left-hand navigation menu.
  3. Click Add sign-in method.
  4. Select an alternative method from the dropdown list, such as Phone, Email, or Authenticator app.
  5. Follow the prompts to verify and save the new method.

Google Workspace

  1. Log into your Google Account and navigate to myaccount.google.com.
  2. Select Security from the left sidebar.
  3. Under the How you sign in to Google section, click on 2-Step Verification. You may be asked to sign in again.
  4. Scroll down to the Backup codes section.
  5. Click the arrow next to Backup codes to expand the menu.
  6. Click Get backup codes.
  7. Save these codes to a secure location immediately.
Critical Security Warning: Never share your recovery codes with anyone, including colleagues or IT support staff. Do not store recovery codes in your email inbox, as a compromised email account would give an attacker access to your MFA bypass codes. Treat these codes exactly like your password.
Storage Warning: Do not save your recovery codes in the same location as your MFA device. For example, do not store a digital copy of the codes on the same phone where you run your authenticator app. If you lose the phone, you lose both your primary MFA method and your backup codes.

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

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:

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:

  1. Enter your email address and password on the login screen as usual.
  2. When prompted for the MFA code or app approval, select I can't use my Microsoft Authenticator app right now or Try another way.
  3. Select the option Use a backup code or Enter recovery code.
  4. Enter one of your unused 8-digit numeric codes into the field.
  5. Once logged in, immediately navigate to your security settings to register your new MFA device.
Testing Tip: After generating new recovery codes, we recommend testing at least one code in a safe environment to confirm it is valid and that you understand the entry process before you need it in an emergency.

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

How to invalidate old codes

Generating a new set of recovery codes automatically invalidates all previously issued codes.

Troubleshooting

The recovery code is not being accepted

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:

  1. Sign in to your account immediately using a trusted device.
  2. Navigate to your security settings and generate a new set of recovery codes to invalidate the old set.
  3. Review your account sign-in activity for any unauthorised access.
  4. 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?

Need more help? If the issue persists after trying these steps, please open a support ticket and our team will assist you.

💻 Open a Ticket