> 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

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

Two-factor authentication (2FA) adds an extra layer of security to panel access. If a user loses access to their authentication app or changes device, 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.plenit.com/) with an active account.
* Verify that the user already had [two-factor authentication](https://jotelulu.com/soporte/tutoriales/habilitar-doble-factor-verificacion-acceso).
* Access with a user who has administrator permissions over the organization's users.

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

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

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

![image](https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2FA7XPD6QU3yHqwHThHPOJ%2F1-Accedemos-a-la-administracion-de-la-organizacion.png?alt=media\&token=b0153a18-0f2c-43ff-ab1f-63da0e12689b)

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

![image](https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2FQnnlB94RP3RKL137QFV2%2F2-Accedemos-a-la-administracion-de-usuarios.png?alt=media\&token=452350f1-6c27-4f20-a5ae-2c894fc146d9)

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

![image](https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2F5aBU7S5BpwuLUgkAwHx2%2F3-Seleccionamos-el-usuario-al-que-le-vamos-a-resetear-la-clave.png?alt=media\&token=e02aae35-c1d2-4f56-9947-4e5990b81d9e)

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

![image](https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2FGwUnqC17nuDbL6ipui27%2F4-Reseteamos-la-clave.png?alt=media\&token=b80c3942-4354-4301-9cd0-45951369b9b4)

#### Step 2. Set up 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 activated 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 screen (5).
3. Save the new account in the app and use the generated code at the next login.

![image](https://3894148717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxksPMyYRDCe4qKkhbpcY%2Fuploads%2FOQqqPrRp1LwzHRTuyMyv%2F5-Mensaje-recibido-por-el-usuario-1.png?alt=media\&token=058105e3-029c-4fa1-8026-793e19caca0e)

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

### Result

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

If the problem continues, 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
