---
title: When using 2FA, how do I recover my account if I've lost my mobile device or recovery code?
description: In the event that you have lost your recovery code, only an OpsCompass user with the SysAdmin role can reset your 2FA token key.
---

[Skip to content](https://kb.opscompass.com/knowledge/recovering-my-lost-2fa-account#main-content)

[![Opscompass](https://kb.opscompass.com/hubfs/opscompass-logo-2024-web-small.svg)](https://opscompass.com)

- [Home](https://opscompass.com/)
- [Why Opscompass](https://opscompass.com/why-opscompass/)
- Product
  
  Show submenu for Product

    - [Inventory](https://opscompass.com/inventory/)
    - [Configuration Drift](https://opscompass.com/product/configuration-drift/)
    - [Compliance](https://opscompass.com/product/compliance/)
    - [Licenses](https://opscompass.com/solutions/licenses/)
- Solutions
  
  Show submenu for Solutions

    - [Hybrid and Multi-Cloud Visibility](https://opscompass.com/solutions/multi-cloud-visibility/)
- [About Us](https://opscompass.com/company/)

Open main navigation

Close main navigation

- [Home](https://opscompass.com/)
- [Why Opscompass](https://opscompass.com/why-opscompass/)
- Product
  
  Show submenu for Product

    - [Inventory](https://opscompass.com/inventory/)
    - [Configuration Drift](https://opscompass.com/product/configuration-drift/)
    - [Compliance](https://opscompass.com/product/compliance/)
    - [Licenses](https://opscompass.com/solutions/licenses/)
- Solutions
  
  Show submenu for Solutions

    - [Hybrid and Multi-Cloud Visibility](https://opscompass.com/solutions/multi-cloud-visibility/)
- [About Us](https://opscompass.com/company/)
- [Get a Demo](https://opscompass.com/demo/)

[Get a Demo](https://opscompass.com/demo/)

 What are you looking for?

- There are no suggestions because the search field is empty.

1. [Help Center](https://kb.opscompass.com/knowledge)
2. [Getting Started](https://kb.opscompass.com/knowledge/getting-started)
3. [Logging In](https://kb.opscompass.com/knowledge/getting-started#logging-in)

# When using 2FA, how do I recover my account if I've lost my mobile device or recovery code?

## In the event that you have lost your recovery code, only an OpsCompass user with the SysAdmin role can reset your 2FA token key.

***Recovering your account with a lost mobile device***

1.) When logging in, click on "Use the recovery code"   
***![Image of opscompass login with a link to use the recovery code](https://kb.opscompass.com/hs-fs/hubfs/image-png-Jul-09-2021-02-33-46-45-PM.png?width=332&name=image-png-Jul-09-2021-02-33-46-45-PM.png)***

2.) Enter the 24 character unique code given when you [initially](https://kb.opscompass.com/knowledge/how-to-enable-2fa-within) enabled 2FA.  
![Image of opscompass login asking to input mfa code](https://kb.opscompass.com/hs-fs/hubfs/image-png-Jul-09-2021-04-21-43-10-PM.png?width=333&name=image-png-Jul-09-2021-04-21-43-10-PM.png)

3.) Take note of the **new** 24 character unique code. As a [best practice](https://kb.opscompass.com/knowledge/safely-securing-2fa-recovery-code), record the new code onto a physical form (paper, notepad) and keep it locked away in a secure area. 

![Image of opscompass login with recovery code entered](https://kb.opscompass.com/hs-fs/hubfs/image-png-Jul-09-2021-04-42-59-69-PM.png?width=335&name=image-png-Jul-09-2021-04-42-59-69-PM.png)

Note: Even if you haven't selected "I have safely recorded this code", there is a 4 minute timeout window. During these 4 minutes, you MUST record the new code, as the system will register the new code after the timeout. 

4.) After securely storing your code, simply click on "I have safely recorded this code" and hit the continue arrow below it. 

**Recovering your account with a lost recovery code** 

*In the event that you have lost your recovery code, only an OpsCompass user with the "Company SysAdmin" role can reset your 2FA token key.*

1.)  If applicable, contact the OpsCompass user with the "Company SysAdmin" role, who will be required to reset the recovery code. 

*Note: Only the "Company SysAdmin" role can reset 2FA authentication codes.*

2\.  As a "Company SysAdmin" user, click the top right dropdown and select "Admin":  
![Screenshot 2023-09-14 at 2.35.07 PM](https://kb.opscompass.com/hs-fs/hubfs/Screenshot%202023-09-14%20at%202.35.07%20PM.png?width=528&height=296&name=Screenshot%202023-09-14%20at%202.35.07%20PM.png)

3\. In the Manage Users tab, select the specific user you would like to reset the 2FA recovery code for:  
![Screenshot 2023-09-22 at 1.37.25 PM](https://kb.opscompass.com/hs-fs/hubfs/Screenshot%202023-09-22%20at%201.37.25%20PM.png?width=688&height=315&name=Screenshot%202023-09-22%20at%201.37.25%20PM.png)

4\. Click on "Reset MFA"![Screenshot 2023-09-22 at 1.38.25 PM](https://kb.opscompass.com/hs-fs/hubfs/Screenshot%202023-09-22%20at%201.38.25%20PM.png?width=688&height=392&name=Screenshot%202023-09-22%20at%201.38.25%20PM.png)

Additional resources:   
[How do I enable 2FA within OpsCompass?](https://kb.opscompass.com/knowledge/how-to-enable-2fa-within)  
[How do I safely secure my 2FA recovery code?](https://kb.opscompass.com/knowledge/safely-securing-2fa-recovery-code)

- [About Opscompass](https://kb.opscompass.com/knowledge/about-opscompass#main-content)

    - [Company Information](https://kb.opscompass.com/knowledge/about-opscompass#company-information)
- [Getting Started](https://kb.opscompass.com/knowledge/getting-started#main-content)

    - [Logging In](https://kb.opscompass.com/knowledge/getting-started#logging-in)
    - [Connecting Cloud Accounts](https://kb.opscompass.com/knowledge/getting-started#connecting-cloud-accounts)
    - [Users and Teams](https://kb.opscompass.com/knowledge/getting-started#users-and-teams)
- [Opscompass CLI](https://kb.opscompass.com/knowledge/opscompass-cli#main-content)

    - [Getting Started](https://kb.opscompass.com/knowledge/opscompass-cli#getting-started)
    - [Resources](https://kb.opscompass.com/knowledge/opscompass-cli#resources)
    - [Accounts](https://kb.opscompass.com/knowledge/opscompass-cli#accounts)
    - [Compliance](https://kb.opscompass.com/knowledge/opscompass-cli#compliance)
    - [Licensing](https://kb.opscompass.com/knowledge/opscompass-cli#licensing)
    - [Examples](https://kb.opscompass.com/knowledge/opscompass-cli#examples)
    - [AI Skills](https://kb.opscompass.com/knowledge/opscompass-cli#ai-skills)
- [Opscompass FAQs](https://kb.opscompass.com/knowledge/opscompass-faqs#main-content)

    - [General](https://kb.opscompass.com/knowledge/opscompass-faqs#general)
- [New Features](https://kb.opscompass.com/knowledge/new-features)
- [Account Management](https://kb.opscompass.com/knowledge/account-management)
- [Compliance](https://kb.opscompass.com/knowledge/compliance)
- [Documents](https://kb.opscompass.com/knowledge/documents)
- [Drift](https://kb.opscompass.com/knowledge/drift)
- [Inventory](https://kb.opscompass.com/knowledge/inventory)
- [Licenses](https://kb.opscompass.com/knowledge/licenses#main-content)

    - [Oracle](https://kb.opscompass.com/knowledge/licenses#oracle)
    - [SQL Server](https://kb.opscompass.com/knowledge/licenses#sql-server)
- [Navigation and Dashboard](https://kb.opscompass.com/knowledge/navigation-and-dashboard)
- [Opscompass Integrations](https://kb.opscompass.com/knowledge/opscompass-integrations)
- [Tutorials](https://kb.opscompass.com/knowledge/tutorials#main-content)

    - [CLI](https://kb.opscompass.com/knowledge/tutorials#cli)

[![Opscompass](https://kb.opscompass.com/hubfs/opscompass-logo-2024-web-small.svg "Opscompass")](http://opscompass.com)

<https://opscompass.com/contact/> <https://www.linkedin.com/company/opscompass/>

Copyright © 2025, Opscompass