# Multi-Factor Authentication

> Source: https://agilitycms.com/docs/owners-admins/multi-factor-authentication

Multi-factor authentication (MFA) asks a user for a second proof of identity, a one-time code from an authenticator app, as well as their password. A stolen password alone is then not enough to sign in.

MFA is enforced at the organization level, for every user who has access to that organization, across all of its instances.

> [!NOTE]
> Enforcing MFA requires a Pro or Enterprise plan.

## MFA and single sign-on

Agility's MFA applies to **email and password** sign-in. If your users sign in through [Enterprise SSO](/docs/owners-admins/enterprise-sso-with-agility-cms), your identity provider enforces MFA under your own policies, and Agility's MFA isn't used.

## Enforcing MFA for your organization

To turn on MFA enforcement, contact [support@agilitycms.com](mailto:support@agilitycms.com). It isn't available as a setting in the Content Manager yet. Managing it yourself is on our roadmap: [vote for it](https://roadmap.agilitycms.com/c/39-manage-organization-security-self-serve).

> [!IMPORTANT]
> Also ask us to turn off the Google, Microsoft and GitHub sign-ins for your organization. If they stay on, a user can sign in with a social account whose verified email matches their Agility account, and skip MFA.

Once MFA is enforced, users are asked to enrol the next time they sign in, and can't sign in until they've done so. See [User Authentication](/docs/owners-admins/user-authentication) for the other sign-in settings.

## Enrolling in MFA

When you're prompted to enrol, scan the QR code with an authenticator app on your phone, then enter the code it shows to complete the setup.

![The MFA enrolment screen with a QR code to scan in an authenticator app](https://cdn.aglty.io/agility-cms-docs/block-editor/ownersadminsarticles/mceclip0-09242021140046.png)

These authenticator apps are tested and supported:

- [Microsoft Authenticator](https://www.microsoft.com/en-us/account/authenticator)
- [Google Authenticator](https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2)
- [Authy](https://authy.com/)

Need another app? Contact [support@agilitycms.com](mailto:support@agilitycms.com).

### Save your recovery code

After enrolling, you're shown a recovery code. Use it to sign in and reset your enrolment if you lose your phone or your authenticator app. Store it somewhere safe.

![The recovery code shown after MFA enrolment](https://cdn.aglty.io/agility-cms-docs/block-editor/ownersadminsarticles/mceclip1-09242021140249.png)

## Signing in with MFA

After your password, you're asked for a one-time code. Open your authenticator app and enter the current code.

![The one-time code prompt at sign-in](https://cdn.aglty.io/agility-cms-docs/block-editor/ownersadminsarticles/mceclip2-09242021140308.png)

On a trusted device, you can tick **Remember this device for 30 days** so you aren't asked for a code every time.

## If you can't provide a code

If you've lost your phone or removed the authenticator app, choose another method on the code prompt.

![The option to try another method on the code prompt](https://cdn.aglty.io/agility-cms-docs/block-editor/ownersadminsarticles/mceclip3-09242021140327.png)

### Use your recovery code

Enter the recovery code you saved when you enrolled. You're signed in and given a new recovery code. Store the new one.

![Signing in with a recovery code](https://cdn.aglty.io/agility-cms-docs/block-editor/ownersadminsarticles/mceclip5-09242021140346.png)

### Still can't sign in?

Contact [support@agilitycms.com](mailto:support@agilitycms.com). We'll verify your identity and reset your MFA enrolment.

---

## Related pages

- [User Authentication](https://agilitycms.com/docs/owners-admins/user-authentication.md)
- [Enterprise Single Sign-On with Agility](https://agilitycms.com/docs/owners-admins/enterprise-sso-with-agility-cms.md)
- [SAML Identity Provider Integration](https://agilitycms.com/docs/owners-admins/saml-identity-provider-integration.md)
- [Authenticate with Microsoft or Azure AD/Entra](https://agilitycms.com/docs/owners-admins/authenticate-with-microsoft-or-azure-ad.md)
- [Authentication and Profiles](https://agilitycms.com/docs/owners-admins/authentication-and-profiles.md)
- [Governing AI Access to Agility CMS](https://agilitycms.com/docs/owners-admins/governing-ai-access.md)
- [Security Review Guide](https://agilitycms.com/docs/owners-admins/security-review-guide.md)

Index of every docs page: https://agilitycms.com/docs/llms.txt
