Strapi admin SSO with Microsoft Entra ID

How to let Strapi editors sign in to the admin panel with Microsoft Entra ID, what the plan and identity setup require, and how auto-registration and default roles are decided before go-live.

On this page

Strapi admin SSO with Microsoft Entra ID: what the integration does

If your editors currently keep separate Strapi passwords, the goal is to have them sign in to the admin panel with the corporate identity they already use. Strapi SSO covers administrator login to the admin panel through an identity provider such as Microsoft Entra ID, and this integration is built with the passport-azure-ad-oauth2 strategy. Once it is enabled, the provider authenticates the person, and Strapi decides what they can do after sign-in through auto-registration, a default role and an optional setting that locks out local password login.

End-user login to the public front end is a different concern. Visitors, customers or members who sign in to a site built on Strapi are handled by the Users and Permissions plugin, with its own providers, tokens and sessions. This page does not cover that path, so do not assume that configuring admin SSO also secures end-user accounts. Keep the two apart in your design document so the front-end team and the security team agree on which identities live where.

Before you plan the work, confirm the plan. In the self-hosted pricing, SSO is an add-on on the Growth plan and is included in Enterprise, so check the current terms on the Strapi self-hosted pricing page and ask Strapi or your partner to confirm which tier covers your user count and whether any add-on cost recurs. Your quote should name that license line separately from the implementation work.

What you need before configuring Entra ID sign-in

Entra ID sign-in for the Strapi admin panel depends on five or six decisions made before anyone opens the Azure portal. Each card below is a check to complete with your Strapi owner, identity team and network team so the app registration and callback settings can be finished in one pass.

Strapi plan with SSO

Admin SSO is not part of the Community Edition, so the project needs a self-hosted plan that includes it. In Strapi's self-hosted pricing, SSO is an add-on for Growth and included in Enterprise. Confirm the current plan terms and what the license covers before you commit, because the pricing page lists these tiers and the add-on rules.

Self-hosted pricing

Strapi 5 with supported runtimes

Confirm the project runs Strapi 5, not v4, since v4 reached end of life on April 30, 2026. Check that the Node.js version is Active or Maintenance LTS and that the database is PostgreSQL 14 or later, MySQL 8.0 or later, MariaDB 10.3 or later, or SQLite 3. MongoDB is not supported. Verify these against the current installation requirements before you upgrade or redeploy.

April 30, 2026
v4 EOL
Installation requirements

Entra tenant with app registration rights

Someone must be able to register an application in the Microsoft Entra tenant that holds your editors, and grant it the consent it needs. Ask your identity team which role is required and whether an administrator must approve the app. Confirm the exact tenant permission requirements in Microsoft's current Entra documentation, since they can change and differ between tenant configurations.

HTTPS hostname for the admin panel

The Entra redirect URI must match the admin panel's public address exactly, including scheme, host and path. Decide the production hostname, issue a valid certificate, and confirm the reverse proxy forwards the original host and protocol to Strapi. A mismatch between the registered callback and the running URL is the most common cause of failed sign-in, so settle the hostname before creating the registration.

Identity source for editors

Decide whether editors exist only as cloud accounts in Microsoft Entra ID or as users synced from on-premises Active Directory with Microsoft Entra Connect. Synced accounts depend on the sync schedule and on which attributes reach the tenant, so a user disabled in Active Directory may still sign in until the change syncs. Map who owns each source before you decide who can reach the Strapi admin.

Break-glass local admin account

Keep at least one local Strapi administrator who can sign in with a password even after SSO is enforced, so a provider outage, a misconfigured role or an expired secret does not lock every editor out. Store its credentials in your secrets manager, restrict who can use it, and test that it still works before you turn on the local login lock-out.

How an admin sign-in passes between the browser, Strapi and Entra ID

The sign-in starts when an editor opens the Strapi admin URL in a browser. Strapi sends the browser to Microsoft Entra ID, where the user authenticates, and the browser returns to the Strapi callback URL with the result. Strapi then matches an existing administrator or creates one through auto-registration and applies the default role. Check the trust boundary between your Strapi host and Microsoft's identity service, and confirm that a local login remains available before you turn on lock-out of local login.

Admin sign-in across the browser, Strapi host and Microsoft identity service.

Configuring Entra ID sign-in step by step

This sequence takes the Strapi admin panel from a plan check to Microsoft Entra ID sign-in with controlled admin creation. Each step closes with a check you can record, so the change can be reviewed before editors depend on it. It covers the Strapi configuration and assumes the Entra ID tenant and user accounts already exist.

  1. Confirm the plan and Strapi version

    Confirm that your self-hosted plan includes SSO, which Strapi lists as an add-on for Growth and as included in Enterprise, and note the exact Strapi 5 version you run. Check the current release list on GitHub so you read the docs for the same release line. Owner: the Strapi project lead with the platform team. Done when the plan and version are written in the change record and both match the SSO documentation you will follow.

  2. Confirm the Entra ID tenant and admin group

    Identify the Microsoft Entra ID tenant that holds your editors and confirm who may register applications in it. Decide which users or groups may sign in to Strapi, because accounts that pass sign-in can be created as admins through auto-registration. Ask the identity team to confirm that these users are in the tenant directly, or synced by Microsoft Entra Connect if your identities start in Active Directory. Done when the team has a written list of permitted users or groups and a named owner for the application.

  3. Register the application in Entra ID

    In the Microsoft Entra admin center, create an app registration for the Strapi admin panel and limit it to your own tenant unless you have a documented reason to allow other directories. Give it a name editors will recognize on the sign-in prompt. Done when the app appears under App registrations with its Application (client) ID visible, and a test user sees the expected sign-in prompt when you start the flow.

  4. Set the callback URL from the docs

    Add the redirect (callback) URL to the app registration exactly as the Strapi SSO documentation specifies for the admin panel, including protocol, host and path. Register a separate entry for each instance, such as production and staging. Small differences in the URL usually cause a redirect error at sign-in. Done when the redirect URI list matches the docs and a test sign-in returns to the admin panel without an error page.

  5. Record tenant and client values securely

    Copy the directory (tenant) ID, the application (client) ID and a new client secret from the registration. Store the secret in your secrets manager or in a host environment file that stays out of source control, and record the expiry date Entra ID shows for it. Do not paste these values into repositories, tickets or chat tools. Done when the values exist only in the secrets store and the team has a renewal reminder set for the secret.

  6. Add provider settings using environment variables

    Add the Microsoft Entra ID provider block to the Strapi admin configuration, using the configuration keys listed in the Strapi SSO documentation for your release. Reference each secret through an environment variable so the config file holds no credentials. Done when Strapi builds and starts without configuration errors and the admin login page shows the sign-in option the docs describe.

  7. Enable auto-registration and default role

    Turn on auto-registration and choose the default role that new administrators receive. Start with the most restrictive role that still lets editors do their work, and confirm the choice with the content owner before go-live. Test with a non-admin Entra ID account in a private browser window, then open the admin users list to check that the account exists with the expected role. Done when exactly one new admin exists with the intended role and no extra permissions.

  8. Decide on local login lock-out

    Decide whether local email and password sign-in stays available as a break-glass path or gets disabled, using the lock-out option the Strapi SSO documentation describes. Keep a tested recovery procedure for the case where the identity provider is unavailable, and record who may use it. Repeat the full sign-in test after the change. Done when a second administrator has signed in through Entra ID with the lock-out setting applied and the recovery procedure is written down.

How Entra ID identities map to Strapi admin accounts

This table compares each Entra ID attribute or setting with the Strapi admin field it populates, who owns it, and what happens when the value changes. Read it before app registration so the sign-in population, admin email matching and default role are agreed with your identity team. Group-based role assignment is not confirmed for the strategy in this topic, so confirm it before promising it to editors.

Identity elementStrapi admin sideOwner and what to confirm
User principal name or emailAdmin account email, used to match or create the admin user on sign-inIdentity team owns the attribute. Confirm which claim the strategy returns and whether it is the sign-in address editors actually use.
Entra object identifierStable reference held by your integration records, not a Strapi default fieldIdentity team owns it. Confirm whether your runbook links accounts by object ID or by email, because email can change.
Tenant membershipDefines the allowed sign-in population for the app registrationIdentity team owns tenant scope. Confirm whether the app is single-tenant or multi-tenant before editors from other tenants can sign in.
Entra group membershipPossible input to Strapi admin role assignment, only if the strategy supports itConfirm with the strategy and your Strapi version. Do not promise group-to-role mapping until a test login proves it.
Default role on auto-registrationRole given to a first-time admin created by SSO sign-inContent lead and Strapi owner decide. Keep the default minimal, since new accounts receive it without review.
Local login lock-outWhether password login remains available for admin accountsSecurity owner decides. Keep a tested break-glass path before enabling lock-out.
Account leaves the tenantExisting admin account remains in Strapi until an admin removes or deactivates itIdentity team and Strapi owner agree a deprovisioning step. Confirm that disabling the Entra user blocks new sign-ins in your test.
Email or UPN changeAdmin account may no longer match the Entra user on the next sign-inIdentity team notifies the Strapi owner. Test a renamed user in staging to see how the account is matched.

Deciding auto-registration and the default role

With auto-registration turned on, Strapi creates an administrator account the first time someone signs in successfully through Microsoft Entra ID, and that account receives the default role you configure in the SSO settings. For every new editor, that default role is the real access decision, so it should be chosen before the provider is switched on for the whole tenant. A permissive default role gives anyone in your directory who can authenticate a working admin session, with whatever content-type and field permissions that role carries. Confirm in your Strapi version which role options the SSO settings offer, and which of them can publish, manage users or change settings, before you pick one.

The alternative is to pre-create each admin account in Strapi and turn auto-registration off, so only people you have already added can sign in through Entra ID. This suits small teams or environments where editorial access is granted by a request process, because every account is a deliberate decision. It adds recurring work for joiners, movers and leavers, and someone must keep the list aligned with Entra ID group membership. A common middle path is to keep auto-registration on with a low-privilege default role, then promote people in Strapi. Whichever path you choose, document who approves new admins and how often accounts are reviewed.

The default role only applies at account creation. Once an administrator changes a user's role in the Strapi admin panel, that change is what counts, and a later sign-in through Entra ID does not reset it to the default. Plan for the reverse case too: removing a person in Entra ID or disabling their Entra account does not, by itself, remove their Strapi admin user, so confirm how deprovisioning is handled in your environment. Test this with a non-production tenant user: sign in, change the role, sign in again, and check that the role persists and that a disabled Entra account can no longer reach the panel.

Which identity setup fits your Entra estate

Your editors exist only as accounts in Microsoft Entra ID, with no on-premises directory behind them. This is the simplest setup for the Strapi admin panel because the identity provider is the single source of truth for who signs in and which groups or attributes they carry. The Strapi side still needs an app registration in your tenant, a redirect URI that points at your admin URL, and a decision about which default role newly registered editors receive.

  • Decisions: whether to allow auto-registration, which default role new admins receive, and whether local Strapi login stays available as a break-glass path.
  • Owner: the Entra ID administrator owns the app registration and tenant policies; the Strapi owner sets the provider configuration and roles.
  • Redirect values: the callback URL in the app registration must match the admin URL of your Strapi instance exactly, including the scheme and path.
  • Access rules: confirm which users or groups are assigned to the enterprise application, since sign-in is only useful for accounts you intend to admit.
  • Verification step: sign in with a test editor account, confirm the account appears in Strapi with the expected default role, then sign in with a second account that should be blocked.

Before go-live, confirm the exact provider settings and any Strapi version requirements with the official SSO documentation and your own tenant configuration.

Hardening the admin sign-in path

Once editors sign in to the Strapi admin panel through Microsoft Entra ID, the sign-in path itself becomes the control point for who can edit content and who can change the configuration. The cards below cover the decisions and checks that keep that path narrow, from transport and secrets to break-glass access and account creation review.

Enforce HTTPS and a stable hostname

The Entra app registration stores a callback URL, and that URL must match the public address editors use to reach the admin panel exactly, including scheme and path. Serve the admin panel only over HTTPS, pick one canonical admin hostname, and change it only through a planned update to the registration. Confirm that the reverse proxy forwards the original host and protocol headers so Strapi builds the callback it expects.

Strapi SSO docs

Keep client secrets out of the repository

The client secret for the Entra application is a credential that grants the ability to exchange sign-in codes, so treat it like a production database password. Inject it at runtime from your secrets manager or the platform's secret store, not from a committed .env file or a container image layer. Confirm that rotation has an owner and a documented procedure before go-live.

Limit who can change the Entra application

Anyone who can edit the app registration, its redirect URIs, its API permissions or its owners can potentially redirect sign-ins or add principals. Restrict application administration to a small named group, and review owners and credentials on a fixed schedule. Ask your Entra administrators to confirm whether user assignment is required for the application, so that only intended staff can start a sign-in at all.

Decide on break-glass local login

The SSO settings offer an option to lock out local admin login once SSO is working. Locking it out removes a fallback if Entra ID, the tenant or the callback configuration fails, so decide deliberately whether a break-glass local account stays enabled. If it does, store its credentials in a sealed vault, name the people who may use it, alert on each use, and test the recovery procedure before relying on it.

Review default role and role grants

Auto-registration assigns the default role to every new admin who signs in, so that role should carry the least privilege needed for editing. After the first sign-in cycle, compare the accounts created and their roles against the people your organization has approved. Check that no account received a role broader than intended, and document any exceptions with an owner and a reason.

Log and review admin account creation

Auto-registration creates admin accounts without a manual approval step, so the record of those creations is your main detection control. Confirm where Strapi and your identity provider log sign-ins and account creation, and who reviews those logs. Audit logs are an Enterprise feature in Strapi's self-hosted plans, so confirm with the vendor which records your plan retains before you rely on them.

Self-hosted plans

Common Entra ID sign-in failures and their fixes

This table maps the sign-in failures teams hit most often when connecting the Strapi admin panel to Microsoft Entra ID, with the likely cause, a check and a fix for each. Work down the symptom column, confirm the check against your own Entra app and Strapi configuration, and apply the fix before changing anything else. Most failures trace back to a mismatch between the Entra app registration and the Strapi settings.

SymptomLikely causeCheckFix
Redirect error from Entra ID after sign-inCallback URL mismatch between the Entra app registration and the Strapi SSO configurationCompare the redirect URI listed under the app registration's authentication settings with the callback URL Strapi builds from your admin URL and protocol, character for characterAdd the exact callback URL to the Entra app registration, or correct the admin URL in Strapi so both match, then sign in again
Browser loops between Strapi and Entra IDThe admin URL, protocol or host changed (for example, http to https or a new domain), so Strapi and the identity provider disagree on where the admin livesConfirm the public admin URL, the reverse proxy headers and the callback URL all use the same scheme and host, and check the loop-avoidance setting in the Strapi SSO docsAlign the public URL, proxy forwarding and callback URL, then apply the loop-avoidance setting exactly as the Strapi SSO docs describe for your version
A user from outside your tenant is refusedThe app registration allows accounts from other directories or the user is a guest, so the tenant or account type does not match what your policy allowsReview the supported account types on the app registration and the user's home tenant, and check whether the user is a guest accountRestrict the app to your organization's tenant if that is the policy, or add a documented exception for specific external editors
Sign-in succeeds but no Strapi admin account appearsAuto-registration is turned off, so Strapi does not create an admin for a first-time identityCheck the auto-registration setting in the Strapi SSO configuration and confirm whether the user was created in the admin users listEnable auto-registration if your access model allows it, or create the admin account in advance and link it to the identity
New admins get too few or too many permissionsThe default role assigned to auto-registered admins does not match the intended access levelOpen the new admin's role in the admin panel and compare it with the role matrix agreed for editors, reviewers and developersSet the default role to the least-privileged role that fits the first login, then promote users through a documented request
Admins locked out after local login is disabledLocal login was turned off without a tested fallback, so no one can sign in if the identity provider or its configuration failsConfirm that at least one tested break-glass path exists and that its credentials are stored securely outside the Strapi adminRe-enable local login temporarily, restore SSO, then test a break-glass path before disabling local login again

What Entra ID admin SSO costs and how long it takes

Do I need a Growth or Enterprise Strapi plan to use SSO for the admin panel?

Yes, SSO is not part of the Community Edition. On the self-hosted pricing page, SSO is an add-on for the Growth plan and is included in Enterprise. Growth is listed at 45 US dollars per month including 3 users, plus 15 US dollars for each extra user, and Enterprise is priced on request. Confirm the current terms with Strapi before you buy, because the add-on and included features are listed on the pricing page and can change. Ask whether the plan you choose also covers the audit logs and review workflows your compliance team expects, since those are Enterprise features.

Can my own team build Entra ID sign-in for Strapi without outside help?

Yes, if your team already runs Strapi and has someone comfortable with Entra ID app registrations and Node.js configuration. The work centers on one passport-azure-ad-oauth2 strategy, an app registration with the correct callback URL, and settings for auto-registration and the default role. The harder parts are testing the sign-in flow in staging, deciding who may register automatically, and proving to security reviewers that local login lock-out and role assignment behave as intended. Many teams keep the build in-house and bring in an outside reviewer for the final check.

How much effort does Entra ID admin SSO take, and what changes it?

Effort depends mostly on your identity estate and role design, not on Strapi itself. A single Entra ID tenant with clear groups and a small set of editor roles is a short, contained task. Effort rises when you have several tenants, guest accounts, conditional access policies that must be tested, custom Strapi roles to map, or a requirement to lock out local admin login. Ask any provider for a written scope that lists the tenants, roles, environments and test cases included, and for the number of review cycles. No duration figure is supplied for this work, so use the written scope as the basis for timing.

Does Windows Server licensing matter if we use Entra ID only?

Not for Entra ID sign-in itself. Microsoft's comparison notes that Active Directory is needed for on-premises apps and that Entra ID is the cloud identity service, and Entra sign-in does not require an on-premises Active Directory Domain Services server. If your estate still runs domain controllers, Microsoft's Windows Server 2025 pricing page lists a suggested price of 1,176 US dollars for Standard and 6,771 US dollars for Datacenter for 16 core licenses, and it says prices vary by region. It also notes that both editions need Client Access Licenses for each user or device. Pay-as-you-go licensing through Azure Arc is listed at 33.58 US dollars per core per month. Confirm with Microsoft or your reseller which licensing applies to your servers.

What do we need to provide before SSO work starts?

Plan to provide the following before the work starts:

  • Tenant administrator access, or a named administrator who can create the app registration and grant consent.
  • The public hostname of the Strapi admin panel, so the callback URL can be set exactly.
  • A named owner for the app registration who will approve secret rotation and changes after launch.
  • A break-glass administrator account in Strapi, kept separate from SSO and tested before local login is locked out.
  • Test users in each Entra ID group that should receive a Strapi role.

Without these, the work stalls at the first sign-in test. Agree on who holds each item in the written scope.

What can we do ourselves before hiring outside help?

Several preparation tasks can be done internally at low risk. Inventory which people need Strapi admin access and which Entra ID groups they belong to. Decide which Strapi role new administrators should receive by default, and whether auto-registration should be limited to specific users. Confirm your Strapi plan includes SSO, and check the Strapi SSO documentation for the settings your version uses. Write down your break-glass process and who approves changes to the redirect URL. Preparing these decisions shortens any later scoping conversation and makes the written quote easier to compare.

What does the quote for Entra ID admin SSO depend on?

A quote depends on the written scope, not on a list price. DeployOpen does not publish a price list, and most engagements are fixed-scope with deliverables and timelines agreed in writing before work starts. Ask for the scope to state the number of environments, identity tenants, roles to map, test cases, documentation and any retest. Ask separately whether ongoing support, upgrades or testing would be a retainer. Also confirm which Strapi plan and Microsoft licensing costs are your own responsibility and which are included in the engagement.

How DeployOpen scopes and delivers Strapi admin SSO

DeployOpen treats Strapi admin SSO with Microsoft Entra ID as a planned change to how editors sign in, not a single configuration step. We agree the identity requirements, the app registration, the sign-in and role mapping rules, and the lock-out decision in writing, then build and test the setup in your Strapi environment and hand over the runbook your team will operate.

How we scope

  • Engagements are fixed-scope, with the scope, deliverables and timeline agreed in writing before work starts.
  • We confirm your Entra ID tenant, licensing for Strapi SSO, and which Strapi plan covers the feature.
  • We define auto-registration, the default role, and whether local admin login stays enabled as a fallback.

How we build

  • We register the application in Entra ID and set the callback URL to match your Strapi admin domain exactly.
  • We configure the passport-azure-ad-oauth2 strategy in your project and keep client secrets out of source control.
  • We test sign-in for new and returning editors, role assignment, and sign-out in a staging environment before production.

How we hand over

  • You receive the written scope, configuration records, and a runbook for rotating secrets and changing redirect URLs.
  • We document the admin role mapping and the steps to add or remove editors through your identity provider.
  • We walk your identity and platform teams through the setup, including a rollback plan if sign-in fails after launch.

How we support

  • Ongoing support, Strapi upgrades and recurring testing are available as retainers after handover.
  • Support covers re-testing SSO after Strapi upgrades, Node.js changes, and identity tenant changes.
  • Retainer scope, response expectations and fees are set in a written quote that follows from the agreed scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.