# Two Factor Authentication in Insights

*Applies to: Patch My PC Advanced and Patch Insights*

2FA - Administrator settings

#### Enabling 2FA

To enable 2FA, first go to Administration -> Settings -> Security and tick Enable two factor user login.&#x20;

Once enabled, you can also enable the ability to allow users to trust the browser they are using. This skips 2FA on subsequent logins but this is optional.&#x20;

<figure><img src="/files/PjPpyaPKMSdSMKl4tiGx" alt=""><figcaption><p>Settings page with 2FA toggle</p></figcaption></figure>

As an admin, you can also enable and disable 2FA for a user. This will override the users 2FA settings.

#### Disable 2FA for user

Go to Administration -> Users -> and click on the Actions button for the user you want to modify. Then on the dropdown click Edit.&#x20;

On the user properties modal, click Two factor authentication enabled and then Save.

<figure><img src="/files/8hersvqTQVC8zf7wFTHq" alt="" width="375"><figcaption><p>Option to disable 2FA on a users account</p></figcaption></figure>

### 2FA - User Settings

#### Enabled 2FA

When logged in, click on your user profile in the top right of the webpage, then click My Settings from the dropdown.

<figure><img src="/files/EpSAyjfw3vidUaYNHCjd" alt=""><figcaption><p>My settings</p></figcaption></figure>

You will now be presented with your users settings. You will see a banner at the bottom to enabled 2FA

<figure><img src="/files/nq5n1VPDfkC18BwSIcWO" alt=""><figcaption><p>Settings modal with 2FA</p></figcaption></figure>

Click Enable, then the modal will load with the steps to enable 2FA.&#x20;

1. Scan the QR code using your authenticator app of choice.&#x20;
2. Enter the code generated by your autenticator app to confirm correct settings
3. Click Download on the security code, the continue button will now enable.&#x20;
4. Your account will now have 2FA enabled, click done.

<figure><img src="/files/dBwNAW7ZgwEht1yRyk2H" alt=""><figcaption><p>2FA Flow</p></figcaption></figure>

Once you have enabled 2FA, you will be greeted on login for a code.&#x20;

<figure><img src="/files/FPvrx4QhLr7yAfT4ctKs" alt=""><figcaption><p>2FA prompt.</p></figcaption></figure>

#### Disable 2FA - User

To disable 2FA, go back into My Settings, on the bottom you will see two new buttons called Recovery codes and disable. Click disable and then enter the code generated in your 2FA app.&#x20;

<figure><img src="/files/EsxTXR9OVbchbtyqbFM8" alt="" width="375"><figcaption><p>My settings with 2FA enabled</p></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.patchmypc.com/patch-my-pc-insights/two-factor-authentication-in-insights.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
