Skip to content

Two-factor authentication options for Microsoft users in Sanity

5repliesLast updated: Nov 13, 2026

Hi, I have a question about two-factor auth login. According to your documentation part: "Users log in to their Sanity.io  accounts using external authentication providers (currently Google Accounts and GitHub) via an OAuth 2 flow, optionally with two-factor authentication, which we strongly recommend..." I'm wondering what I should tell our customer using Microsoft services? Should they just add two factor auth on their emails and it should be just fine or is there any two-factor setting for sanity teams?
AI Update

Sanity has no separate 2FA switch for an organization or project. Login security belongs to whichever identity provider the person signs in with. Users of Microsoft services have two options:

Standard sign-in methods

A Sanity account is created with Google, GitHub or an email address and password. Each method creates a separate account, even when the email address is the same (Manage your account).

The sign-in method can't be changed on an existing account. To switch, create a new account with the new method, have an admin remove the old account, and re-invite the new one.

Logging in with Microsoft: SAML SSO with Entra ID

With SAML SSO, users who log in through Sanity Studio or Sanity Manage are authenticated by the organization's identity provider, and Sanity assigns roles based on their groups there. It requires an organization with a project on the Enterprise plan (pricing).

Setup in short:

Full walkthrough: Set up SSO authentication with SAML and Azure/Entra ID.

Things to know:

In short

Tell the customer to turn on 2FA with whichever provider they sign in to Sanity with. To sign in with Microsoft identities and enforce Entra ID MFA policies, they need SAML SSO on the Enterprise plan.

Show original thread
5 replies

Was this answer helpful?

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Related contributions