How n8n SAML SSO with Microsoft Entra ID works for your organization
Entra ID can be the single place where n8n sign-in is granted and removed, but only if n8n is configured to trust it over SAML and your team understands what that trust does not cover. Staff who sign in to n8n with a separate email and password create a second account to govern. When someone leaves, the access you need to end sits in n8n as well as in Entra ID. SAML single sign-on lets n8n accept the Entra ID login, so disabling the user in Entra ID stops new sign-ins from that identity. Be aware that existing n8n sessions and any local accounts are separate from that step, which is why the offboarding and break-glass decisions matter as much as the initial setup.
SAML SSO is a paid-plan feature. According to n8n's pricing page, SSO and LDAP are included only in the Business and Enterprise plans, and n8n's SAML documentation includes step-by-step setup guides for Okta Workforce Identity and Azure AD. Entra ID is the current name for Azure AD, so the Azure AD guide is the starting point for this build. Confirm with n8n which plan your organization needs before you plan the work, because the plan decision determines whether this integration is available at all. Teams that only need a few people to sign in, with no central joiner and leaver process, may be served by local accounts with two-factor authentication. Teams with many users, existing Entra ID groups, or a requirement that access follows the directory will normally need SAML.
Choose SAML when the directory is the authority for who may use n8n and when the reviewers who approve access work in Entra ID. Keep at least one local owner account documented for recovery if the identity provider is unavailable, and confirm with your team how that account is protected. Ask the implementation partner or your own engineers to state in writing which Entra ID settings govern sign-in, which n8n settings govern roles, and which steps are manual at leaver time. Those answers determine the effort, the testing plan and the ongoing review that the rest of this page covers.
How a sign-in travels from Entra ID to n8n
The sign-in starts in the user's browser when they open n8n. n8n sends a SAML request through the browser to the Enterprise application in your Entra ID tenant, which authenticates the user and reads their group membership. Entra ID returns a signed SAML response through the browser, and the user posts it to the reply URL on your n8n host. The two boxes mark the trust boundary: your tenant on one side and your n8n host on the other. Check the identifier, reply URL and group claim at these hand-offs, because most failed sign-ins break at one of them.
Sign-in hand-offs between the browser, n8n and your Entra ID tenant.
Which configuration choices fit your setup
Group-based role provisioning ties n8n access to identity provider groups, so joiners, movers and leavers change access through the directory instead of through n8n administrators. Manual role assignment keeps every decision inside n8n, which is simple for a small team but creates a second list that must be kept in step with Entra ID. Group mapping only works well when your group design is already clean, because a poorly named or overly broad group becomes a broad n8n role. Check which n8n plan includes SSO and confirm the role provisioning modes your version supports before you design group names.
- Directory as source of truth: Group membership in Entra ID drives access, which reduces drift between systems.
- Manual assignment for small teams: A handful of administrators can assign roles directly, with less upfront design work.
- Group design effort: Mapping requires agreed group names and ownership before the rollout starts.
- Audit trail location: Group-driven changes are reviewed in Entra ID, while manual changes are reviewed inside n8n.
- Blast radius: A group that grants more than intended gives that access to every member at their next sign-in.
Before committing, test one group with a non-production user and confirm the role that n8n assigns matches your intent.
A break-glass local owner is an account that signs in with a password instead of SSO, so administrators can recover the instance if the identity provider, certificate or SAML configuration fails. SSO-only login removes password accounts entirely, which simplifies access reviews but leaves no direct way in during an identity outage. The trade-off is between recovery certainty and the risk that a local password becomes a forgotten back door. Your choice should match how your organization handles emergency access for other critical systems.
- Recovery during outage: A local owner can fix a broken SAML setting when Entra ID is unavailable or misconfigured.
- Credential custody: The local password needs sealed storage, named custodians and a documented retrieval process.
- Monitoring: Every local sign-in should generate an alert that the security team reviews.
- SSO-only simplicity: Fewer accounts mean fewer credentials to rotate and fewer review items.
- Recovery dependencies: Confirm in the n8n documentation how the local owner account is created and whether the instance keeps it alongside SAML.
Whatever you choose, test the recovery path in staging before production enforcement and record who can use it.
Testing in a staging instance lets you verify the Entra ID enterprise application, reply URL, claims and group mapping without locking real users out. Enforcing directly in production is faster but leaves no safe place to find a misconfigured claim or a missing group assignment. A staging instance costs extra infrastructure and a second set of identifiers, yet it is the cheapest place to discover mistakes. Ask your team to define in advance what a successful test looks like.
- Separate identifiers: Staging needs its own enterprise application or test group so production settings are not altered by experiments.
- Test users: Use a small set of named accounts that cover administrators, project members and users with no group.
- Parallel sign-in: Keep a working local login during the test window so you can compare behavior and recover.
- Change window: Plan enforcement for a period when administrators can respond quickly to failed sign-ins.
- Infrastructure cost: Staging adds hosting and maintenance effort that a quote should show as a separate line.
Before enforcing in production, confirm that a test user from each planned group signs in with the expected role and that a removed user loses access.
Setting up the Entra ID enterprise application and n8n SAML settings
This sequence connects n8n to a Microsoft Entra ID enterprise application over SAML, maps the attributes n8n needs, limits sign-in to assigned users and groups, and proves the login works before anyone is required to use it.
Confirm the n8n plan includes SAML
Before any Entra ID work, the administrator confirms that the n8n instance is on a plan that includes SAML single sign-on. According to n8n's pricing page, SSO is included only in the Business and Enterprise plans, so a Community or lower-tier instance cannot complete the remaining steps. Ask n8n or check the current pricing page to confirm the plan that applies to your self-hosted instance. The check is complete when the plan is recorded in the change ticket and the team agrees on which n8n URL will be used for sign-in.
Create the enterprise application in Entra ID
A Microsoft Entra administrator creates a non-gallery enterprise application for n8n in the Entra admin center and selects the single sign-on option for SAML. Name the application so that support staff can recognize it quickly, for example with the environment name in the label. Keep the application scoped to the n8n instance it serves so that a later change does not affect other systems. The step is complete when the application exists in the tenant and its single sign-on page is open for configuration.
Set the identifier and reply URL from n8n
Open the SAML settings page in n8n and copy the exact values it displays for the entity identifier and the assertion consumer (reply) URL. Enter these in the Entra ID basic SAML configuration without retyping them, because a single character difference in the identifier or reply URL causes sign-in to fail with a generic error. Use the n8n SAML documentation to confirm the current field names and where each value appears. The check is complete when both values in Entra ID match the values copied from n8n character for character.
Configure claims and group claims
Review the user attribute and claims section in Entra ID and confirm that the email address and name claims n8n expects are present and map to the correct user properties. Decide whether group membership is needed for access decisions and, if so, add a group claim that emits the group identifiers your role mapping will use. Confirm with n8n's SAML documentation which attribute names and formats the instance expects, since the names are product-specific. The step is complete when a test assertion, or the claims preview in Entra ID, shows the expected email and group values for a sample user.
Assign users and groups to the application
The administrator assigns the individual users or the security groups that should be allowed to sign in to the n8n enterprise application, and sets user assignment required so that unassigned accounts are refused at Entra ID. Keep the list short at the start and expand it after testing. Record which groups are assigned, because removing a group later is the usual way to revoke access through Entra ID. The check is complete when a user who is not assigned is refused and an assigned test user reaches the application's sign-in step.
Enter the Entra ID metadata in n8n
From the enterprise application, download the federation metadata or copy the identity provider entity identifier, sign-on URL and signing certificate, then enter them in the SAML settings in n8n. Save the settings but keep SAML sign-in in a test state, not enforced, until the next step is complete. Confirm the certificate expiry date in Entra ID and note it in your renewal calendar. The check is complete when n8n shows the saved identity provider details and the settings page reports no validation errors.
Test sign-in before enforcing SAML
Sign in to n8n with a test user assigned in Entra ID from a fresh browser session, and confirm the user lands in the expected instance role. Repeat the test with a user who is not assigned to confirm that access is refused. Keep at least one local owner account available and tested, so that the instance can be administered if the identity provider is unavailable. Enforce SAML only after these tests pass and the team has agreed on the fallback procedure. The step is complete when the test results are recorded and the enforcement change is approved.
How claims and groups map to n8n access
Sign-in works only when Entra ID sends the right identity to n8n and the right people are assigned to the application. Each card below covers one link in that chain, from the user identifier n8n matches on to what happens to local accounts after you switch SSO on.
User identifier and email claim
n8n uses the SAML NameID and the email attribute to decide who a sign-in belongs to. Entra ID can send the user principal name or the primary email as NameID, and those values are not always the same. Pick one identifier, make sure it is unique and stable, and confirm in the current n8n SAML docs which attribute n8n reads for the email address. A mismatch here usually shows up as a second account for the same person.
n8n SAML docsName claims for display
First name and last name claims populate the profile shown inside n8n, including who appears as the owner of a workflow or credential. Entra ID exposes these as standard claims that you map in the enterprise application. Check that the names arrive on first sign-in and that they update when the directory changes, because stale names make audit trails harder to read.
Group claims and their limits
Group claims let n8n read a user's Entra ID group membership at sign-in. Confirm two things before you rely on them: how many groups Entra ID includes in the token before it switches to a link-based overflow, and whether your chosen group type is emitted. Prefer a small set of security groups dedicated to n8n over broad directory groups, so the claim stays short and the access model stays readable.
Role mapping in n8n
n8n maps identity provider groups to instance roles and, depending on the configured mode, to project roles. Decide which mode fits your model before you test, and write down which group grants which role. Test with one pilot group first, and confirm in the current n8n SAML and role provisioning docs which mapping modes your edition supports and how an unmatched user is treated.
n8n SAML docsAssignment requirements in Entra ID
Assignment required on the enterprise application stops anyone without an explicit user or group assignment from signing in, even if they hold a valid Entra ID account. Turn it on before go-live and assign the pilot group, then check that a user outside the group is refused. Without this setting, every active tenant user can reach the n8n sign-in page.
Existing local accounts after SSO
Local email and password accounts already in n8n do not disappear when SAML is enabled, and they can remain a sign-in path if the instance still allows it. Decide in advance whether local logins stay for a named break-glass owner, whether other local accounts are converted or removed, and who holds that owner credential. Confirm with the n8n docs how existing users are matched to their SAML identity on first login.
Why removing a user in Entra ID does not end n8n access on its own
Unassigning or disabling a user in Entra ID stops new SAML sign-ins to n8n, but it does not by itself end sessions that already exist, and it does not delete the user record inside n8n. The n8n user keeps its owned workflows, credentials and any API keys it created until someone removes or transfers them. Treat the Entra ID change as the first step of offboarding, not the whole of it. Before you rely on it, confirm in your own test instance how long an active browser session survives after the user is removed from the enterprise application, and whether a session ends on its own or only when the cookie expires or the user signs out.
Check three things in your environment. First, whether the user still appears in n8n's user list after the Entra ID change, and whether that record is still in an active state. Second, which workflows, credentials and projects the user owns or can edit, since those items stay with the account unless they are reassigned. Third, whether any API keys issued to that user can still call the instance. Confirm with n8n's current documentation how API keys and sessions behave when a user is deleted, because those behaviors have changed between releases and should be checked against the version you run. The n8n SAML user management documentation is the starting point for how SAML-provisioned accounts are handled.
Plan the removal as a checklist with an owner for each step, and record the time each step completes. The Entra ID change, the n8n session check, the ownership transfer and the credential and key rotation are separate actions, and a gap in any one of them leaves access open. Run the full sequence against a test user on a non-production instance before you write it into your leaver process, so the team knows what the auditor or security reviewer will see in the logs and the user list.
Security and operational considerations for SAML sign-in
SAML sign-in changes who can reach your n8n instance and how quickly access ends. The items below cover the controls that keep the instance recoverable, the signing trust current, and the identity settings reviewed before and after they change.
Keep a break-glass local owner
Keep one local owner account with a strong password, stored in a sealed vault and tested before SSO is enforced. If Entra ID is unavailable, misconfigured or the SAML connection breaks, this account is the only way back into n8n to fix it. Confirm with your identity team who holds the credential, how it is audited, and that it is not tied to a named employee who may leave.
Plan signing certificate rotation
Entra ID signs SAML assertions with a certificate that expires, and n8n must trust the matching public certificate. Record the expiry date, add the renewal to your calendar well ahead of it, and confirm how the new certificate is loaded into n8n before the old one lapses. Test the rotation in a non-production instance first, because a missed renewal stops every SSO sign-in at once.
n8n SAML docsTest before enforcing SSO
Test sign-in with a small pilot group while email and password login remains available to administrators. Check that claims map to the right email and name, that group-based roles land as intended, and that a test user without the group is refused. Enforce SSO only after these checks pass, and keep a written record of the results for your change file.
Log and monitor sign-ins
Review who signed in, when, and from where, using both the Entra ID sign-in logs and whatever n8n audit output your plan and deployment provide. Failed SAML responses often point to a changed certificate, a renamed claim or a wrong reply URL. Ask your team which alerts would reach a person on call and who reviews the logs on a fixed schedule.
Protect the n8n encryption key
n8n uses an encryption key to protect the credentials it stores, so losing it or exposing it can break stored secrets and widen the impact of a compromise. Store the key in a secrets manager with restricted access, back it up with your database backups, and keep it identical on every instance that shares the database. Do not change the key as part of an SSO change without a planned credential migration.
Change control for IdP settings
Entra ID application settings, claims, group assignments and certificates all affect n8n access, and an edit made by one administrator can lock out every user. Require a ticket, a named approver and a recorded rollback step for each change, and limit who can edit the enterprise application. Review group membership on the same cycle as your other access reviews.
Questions buyers ask about n8n SSO with Entra ID
Which n8n plan includes SAML single sign-on with Entra ID?
SAML single sign-on is available on the Business and Enterprise plans, according to n8n's SAML documentation and pricing page. The Community edition, which is free for self-hosting, does not include SSO, and neither does the Starter or Pro cloud plan. The Business plan is listed at 667 euros per month billed annually and is currently self-hosted only, so an organization that wants Entra ID sign-in on its own servers would look at Business or Enterprise. Confirm the current plan terms with n8n before purchase, since plan contents change between releases.
How long does n8n SSO setup with Entra ID take?
Duration depends less on the SAML settings themselves and more on what surrounds them: the enterprise application, the group design, the test plan and the change window. A single-team instance with a small group set and a test account can be configured quickly, while a multi-team instance that needs group-based roles, break-glass accounts and a documented offboarding process takes longer. Ask any partner for a written timeline that lists the Entra ID work, the n8n work, testing and the cutover separately, and ask which of those items depend on your admins being available.
What do we need from our Entra ID and n8n administrators?
The work needs an Entra ID administrator who can create an enterprise application, set identifiers and the reply URL, configure claims and assign users or groups. It also needs an n8n owner or administrator who can enter the SAML settings, confirm the instance URL and set the first administrator. Plan for a test user in each group that will receive a role, and for someone who can change the DNS or certificate for the n8n hostname if those are not yet in order. Agree in writing who approves the change, who holds the break-glass account and who can answer questions during the cutover window.
Can our own team set up n8n SSO with Entra ID?
A team with working experience of Entra ID enterprise applications and n8n administration can usually handle the basic SAML setup from n8n's step-by-step guide. The gaps tend to appear in claims mapping, group-based access, testing before enforcement and removing users cleanly, because each of these affects who can reach production workflows and credentials. Consider whether your team has time to test every path, document the result and repeat the check after an n8n upgrade. A partner can take on any of these pieces under a written scope, while your team keeps ownership of the identity decisions.
What does a DeployOpen engagement cover for n8n SSO?
DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own infrastructure. For this topic, a typical written scope would cover the Entra ID enterprise application, the n8n SAML configuration, the claims and group mapping, a test plan, the cutover and the user removal steps. Most engagements are fixed-scope, so deliverables and timelines are agreed in writing before work starts. DeployOpen does not issue audit reports or certifications, so any evidence you need for an assessment would come from your own records and the independent auditor.
How is a DeployOpen SSO engagement priced?
DeployOpen does not publish a price list. A quote follows from the written scope, which is why the scope document should name each system touched, each group that will be mapped, the test cases and any retainer for later support. Ask for the quote to separate one-time work, such as configuration and testing, from recurring items, such as upgrade testing or ongoing support. Also ask what you must provide, since admin time on your side affects the schedule as much as the hours billed. Ask what happens if the scope changes during the work.
How do we remove a leaver's access to n8n after Entra ID disables them?
Disabling or removing the user in Entra ID does not automatically end an existing n8n session, so the offboarding steps need to cover n8n directly. Delete or deactivate the user in n8n, transfer their workflows and credentials to an owner, and rotate any credential or API key they could have used. Confirm in a test that a removed user cannot sign in and that a session already open is closed. Keep a short record of each leaver with the date and the steps completed, which helps when an auditor asks how access ends.
What should we check after the SSO cutover?
Check that users in each mapped group reach the expected n8n role, that a user outside every group is refused, and that the local owner account still works as a break-glass path. Confirm that enabling SSO did not leave email and password logins open for users who should only use SSO. Repeat these checks after each n8n upgrade and after any change to Entra ID claims or group membership. Write the results into your change record so the next reviewer can see what was tested and when.
How DeployOpen scopes and delivers n8n SSO with Entra ID
Every n8n SSO engagement starts with a written scope, deliverables and timeline agreed before any work begins. For this topic, the scope usually names the Entra ID side (the enterprise application, the identifier and reply URL, the claims mapping, and the groups that will be assigned to it), the n8n side (the SAML settings, the instance owner and break-glass account, and the role provisioning choice), and the test plan that must pass before enforcement is switched on. It also names the offboarding steps and the handover documents. Fixed scope lets your security and identity teams review exactly which tenant settings change, who approves them, and what evidence is delivered at the end. Because SAML single sign-on in n8n is on the Business and Enterprise plans, the written scope should also confirm which plan your instance runs on before anyone configures it.
DeployOpen's delivery covers the Entra ID app setup, the n8n configuration, testing in a non-enforced state, and the removal steps. Before the scope is signed, ask the delivery lead to confirm who holds Entra ID administrator rights during the work, whether the n8n instance is reachable by the identity provider for test sign-ins, and how a failed test is rolled back without locking out the owner account. Ask for a handover document that lists every setting changed in Entra ID and n8n, the group-to-role mapping, the test results with their dates, and the offboarding runbook your team will run. Timelines depend on how many groups, roles and environments are in scope, so ask for them to be written against those inputs rather than as a single figure.
Ongoing support is available as a retainer for work that continues after handover, such as adding groups, reviewing role mappings after reorganizations, re-testing after n8n upgrades, and checking that removed users no longer hold active access. DeployOpen does not issue audit reports or certifications for the resulting setup. If your compliance team needs independent assurance over identity controls, ask the auditor which evidence they will accept from the handover pack and plan that assessment separately.

