> For the complete documentation index, see [llms.txt](https://docs.plenit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.plenit.com/docs-en/platform/security/how-to-recover-my-2fa-code.md).

# How to Recover My 2FA Code

Reset a user's two-factor authentication (2FA) key from the Plenit admin panel so they can access again with a new setup.

Two-factor authentication (2FA) adds an extra layer of security to panel access. If a user loses access to their authenticator app or changes devices, an administrator can generate a new key so they can set it up again.

### Reset the two-factor authentication key

Before you begin:

* Log in to the [Plenit Platform](https://admin.jotelulu.com/) with an active account.
* Verify that the user already had enabled the [two-factor authentication](https://jotelulu.com/soporte/tutoriales/habilitar-doble-factor-verificacion-acceso).
* Log in with a user who has administrative permissions over the organization's users.

By generating a new key, the previous 2FA configuration becomes invalid. Make this change only if the user has lost access to their authenticator app or needs to register a new device.

#### Step 1. Generate a new key for the user

1. In the admin panel, click **"Organization"** (1).

![image](https://jotelulu.com/wp-content/uploads/2022/09/1-Accedemos-a-la-administracion-de-la-organizacion.png)

2. In the left sidebar, click **"Users"** (2).

![image](https://jotelulu.com/wp-content/uploads/2022/09/2-Accedemos-a-la-administracion-de-usuarios.png)

3. Select the user whose two-factor authentication you need to reset and click their name (3).

![image](https://jotelulu.com/wp-content/uploads/2022/09/3-Seleccionamos-el-usuario-al-que-le-vamos-a-resetear-la-clave.png)

4. Within the user's settings, click **"Generate new key"** (4).

![image](https://jotelulu.com/wp-content/uploads/2022/09/4-Reseteamos-la-clave.png)

#### Step 2. Configure the new key in the authentication app

After generating the new key, the user will see a message like this: **"Two-step verification has been enabled for your user in the Plenit Panel."**

To complete the process:

1. Open the authentication app you use for two-factor authentication, for example Google Authenticator.
2. Scan the QR code shown on the screen (5).
3. Save the new account in the app and use the generated code at the next login.

![image](https://jotelulu.com/wp-content/uploads/2022/09/5-Mensaje-recibido-por-el-usuario-1.png)

If the app does not accept the new key, delete the user's previous configuration and repeat the QR code scan.

### Result

When the user completes the registration of the new key, they will be able to use two-factor authentication again in the Plenit admin panel.

If the problem persists, contact [platform@plenit.com](mailto:plataforma@plenit.com).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.plenit.com/docs-en/platform/security/how-to-recover-my-2fa-code.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
