# Using Keeper TOTP with Azure or Office 365

## Microsoft 2FA Configuration

Keeper can protect Azure AD / Office 365 logins with our TOTP (time-based one-time password) feature.  By default, Microsoft provides a different type of code which supports their push method.  Below are the step by step instructions to setting up Office 365 TOTP code support properly.

**(1)** From your Microsoft Azure / Office 365 Profile Screen, visit your security settings screen. The Microsoft site seems to change often, so we won't add a hyperlink here.  Click on "Add Method" to set up two factor authentication on your Microsoft account.

![](/files/-Ma0eoRhVgFxcf2kJrId)

**(2)** Select "I want to use a different authenticator app" as your preferred option

![](/files/-Ma0f2nSEgIZhPdmZQef)

The QR code will be generated and displayed:

![](/files/-Ma0fGKe3SjU8dDZ88_T)

**(3)** On Keeper from your record, click on "Add Two-Factor Code".  Or if you're using the mobile app, you can tap on "Add Two-Factor Code" to scan it with the camera.

![](/files/-Ma0fYYy0g2Yg7dtENEZ)

![](/files/-Ma0ftjxaldR8FCGMZLs)

**(4)** Enter the verification code as displayed in your Keeper app

![](/files/-Ma0g0G3VjQd1DuyyeS2)

**(5)** Click Next and then Save the record in the Keeper vault.

{% hint style="success" %}
Make sure to **save** the Keeper record before exiting the setup
{% endhint %}

**(6)** To ensure that Autofill works with all the various Microsoft sites you may be using, we recommend adding several custom fields to your Keeper record similar to the screen below.

![Keeper vault record configuration](/files/-M3hDyjGjuCprnJZhN2_)

### Logging in with Two Factor Code

When logging into Microsoft Online, use Keeper's right-click menu as a simple way to fill the TOTP code.

![](/files/-M3hGxzOsW8HYRrvVmYp)


---

# 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.keeper.io/en/user-guides/tips-and-tricks/using-keeper-totp-with-office-365.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.
