n8n SSO and identity integration

Connecting n8n to your identity provider through SAML or LDAP, assigning roles and project access, and limiting who can use shared credentials. SSO and LDAP require the Business or Enterprise plan.

On this page

When n8n SSO becomes a requirement and why it is harder than the setup guide suggests

SSO becomes a requirement when a security or IT team needs n8n accounts issued, changed and removed by its existing identity provider, and shared credentials governed by the same rules as other business systems. SAML single sign-on and LDAP are available on the Business and Enterprise plans, so the license choice comes first. The integration itself is more than a login setting: it decides who gets which role, which projects they can see, and who can use the credentials those workflows depend on.

The setup guide covers the connection between n8n and the identity provider, and the step-by-step guides for Okta Workforce Identity and Azure AD in the n8n SAML docs are a good starting point. What they do not settle is the mapping from directory groups to n8n roles and project access, how credential sharing works once a user leaves a team, and what happens to access when someone is deprovisioned in the directory but still owns workflows. Confirm with your vendor and in a test tenant how role changes and removals propagate, and decide who owns orphaned workflows before go-live.

Queue mode adds a second set of concerns. Workers must hold the same encryption key as the main instance to read stored credentials, so identity changes do not remove the need to protect that key and distribute it safely. Confirm which parts of your access model depend on the main instance alone and which reach workers and webhook processors. Your team should also test SSO against each process type before go-live, not only the editor login.

The n8n components that identity integration touches

Identity integration in n8n touches six separate components, and each has a different owner. The identity team usually controls the directory and the sign-on protocol, while the n8n administrator controls roles, projects and how credentials are shared. Mapping these before setup prevents access problems that only appear after go-live.

SAML single sign-on settings

SAML sign-on is available on the Business and Enterprise plans and is configured in n8n's admin settings, with the identity provider supplying the metadata and attribute mappings. The identity team controls the application, the signing certificate and the attributes sent in the assertion. The n8n administrator controls whether SSO is enforced and who can sign in. Setup guides exist for Okta Workforce Identity and Azure AD, but confirm the current settings screens in the n8n SAML documentation before you plan the change window.

n8n SAML docs

LDAP directory connection

LDAP connection also sits on the Business and Enterprise plans and lets n8n authenticate users against an existing directory. The directory team controls the bind account, the search base, group structure and account disablement, which determine who can log in at all. The n8n administrator controls the connection settings and the synchronization behavior. Ask the directory team to confirm that disabled accounts stop working in n8n, since a departed user should not keep access through a cached session.

Instance user roles

Instance roles decide what a person can do across the whole n8n installation, such as managing users, settings and licensed features. Identity teams often assume that group membership in the directory maps to these roles automatically, so confirm how role assignment works in your setup. The n8n administrator controls the instance owner and admin accounts. Keep the number of people holding instance-level administration small and review it on a fixed schedule.

Project membership and roles

Projects group workflows and credentials, and project roles decide who can edit, run or view what inside each one. This is where shared team access is actually enforced, so a user who can sign in may still see nothing useful. The n8n administrator controls project creation and membership, while team leads usually request changes. Map each project to a business owner before onboarding, because projects that nobody owns tend to accumulate broad access over time.

Credential sharing model

Credentials are the secrets that workflows use to reach databases, mail systems and APIs, and sharing them is a separate decision from sharing workflows. A user with access to a workflow can often use a credential without being able to read its secret values, but confirm this behavior for your version. The n8n administrator controls which projects receive a credential. Review shared credentials regularly, since a credential shared widely outlives the person who created it.

Encryption key for stored credentials

n8n encrypts stored credentials with an encryption key, and losing or changing that key makes stored credentials unreadable. Identity integration does not replace this key, so single sign-on protects the front door but not the stored secrets. The platform team controls where the key is kept and how it is backed up. In queue mode, the key must also be shared with every worker and webhook processor, so plan its distribution and rotation together with the identity design.

Queue mode docs

Choosing SAML, LDAP or local accounts for n8n

This table compares SAML single sign-on, LDAP directory integration and local accounts with a break-glass owner for self-hosted n8n. Read each row against your identity provider, your plan and the recurring work each option leaves with your team. The main takeaway is that SSO and LDAP are plan-gated, so the plan decision and the identity source should be settled together.

OptionWhen it fitsOperational costPlan fit
SAML single sign-onA cloud identity provider such as Okta or Azure AD is the source of truth for staff accountsMaintaining the identity provider application, certificate or metadata updates and role mapping as staff changeBusiness or Enterprise self-hosted plans per n8n pricing
LDAP directory integrationUsers and groups live in an on-premises directory that you can reach from the n8n networkA directory service account to manage and rotate, network paths to the directory, and group filter upkeepBusiness or Enterprise self-hosted plans per n8n pricing
Local accounts with a break-glass ownerCommunity edition deployments, or as a recovery path alongside SSO or LDAPManual account creation and removal, password handling, and a named owner who keeps the emergency login controlledAvailable without a SSO or LDAP license
Joiner and leaver handlingAny option where staff change roles or leave oftenSAML or LDAP reduce manual work only if deprovisioning is tested, since removing a user in the identity source must also remove n8n accessConfirm the behavior for your plan and version
Business versus Enterprise fitBusiness covers SSO and LDAP for self-hosted use; Enterprise adds multi-main and dedicated support with an SLAConfirm whether your identity needs depend on Enterprise-only features before choosing a planPlan tiers per n8n pricing page
Projects or instance-level accessProjects fit teams that own separate workflows and credentials; instance-level roles fit small administrator groupsProject membership needs ongoing review as teams change, so ask who approves accessConfirm project and role availability for your plan

How to set up n8n SSO with SAML on Business or Enterprise

This sequence takes a self-hosted n8n instance from a plan check to a state where users sign in through your identity provider, roles follow directory attributes, and local password login is restricted. It is written for the team that owns identity and the team that runs n8n.

  1. Confirm plan and self-hosted deployment

    Confirm with your n8n account owner that the plan is Business or Enterprise, since SSO and LDAP are included only in those plans according to n8n's pricing page. Confirm that the instance runs in your own infrastructure, because the Business plan is currently self-hosted only. Record the public editor URL, because the identity provider needs it for the callback configuration. Done when the plan is written down with the owner's name and the instance URL is reachable over HTTPS from your identity provider's network path.

  2. Decide the identity provider application and attributes

    Choose the identity provider application that will represent n8n, and agree with your identity team which attributes will be sent in the assertion: at minimum the user's email and a group or role claim that n8n can map to its own roles. Decide who owns the application, who approves group membership, and which accounts are allowed to keep an owner role. Done when a written attribute map exists that names each claim, its source directory field, and the n8n role it will drive.

  3. Configure the identity provider with n8n service provider details

    Create the SAML application in your identity provider and enter the service provider values that n8n displays in its SSO settings, such as the assertion consumer address and entity identifier. Attach the attribute map from the previous step and assign a small pilot group. For vendor-specific clicks, follow the step-by-step guides in n8n's SAML user management documentation for your provider rather than reproducing them here. Done when the identity provider shows the application as assigned to the pilot group and its metadata or certificate is ready to copy.

  4. Enter the provider settings in n8n

    As an owner, open the SSO settings in n8n and enter the identity provider metadata or endpoint and certificate values, then save. Keep the settings in a change record with the person who made them, since a wrong certificate blocks all sign-ins. Do not disable local login yet. Done when n8n reports the SAML configuration as saved and the metadata values match the ones shown in your identity provider.

  5. Map identity attributes to n8n roles

    Map the group or role claims from the assertion to n8n's global roles and confirm which users receive which access level. Keep at least one named owner account that is not tied to a single person's directory record, and document the break-glass procedure for it. Review project access separately so that a new user who signs in through SSO lands with only the projects they need. Done when a test list of pilot users shows the expected role for each one in n8n's user list.

  6. Test login with a non-owner account

    Sign in as a pilot user who holds a standard role, not an owner, from a private browser session. Confirm that the user reaches the editor, sees only the projects assigned to them, and cannot open owner-only settings or credentials they should not reach. Repeat with one user from a group that should be denied and confirm the sign-in fails. Done when the results for both accounts are recorded and any mismatch has a fix assigned to the owner of the identity provider or the n8n instance.

  7. Restrict local login and confirm the fallback

    After the pilot passes, decide whether local email and password login should be disabled for ordinary users, and apply that setting only after confirming that the break-glass owner account still works through its documented path. Check that revoked directory users lose access to n8n within the time your identity team accepts, and that the audit trail records sign-ins. Done when a second owner test confirms the fallback route and a revoked pilot account is refused.

  8. Use LDAP as a branch for directory environments

    If your users are managed in a directory rather than a SAML provider, follow the LDAP branch instead of steps 2 to 4. Confirm the plan includes LDAP, agree on the bind account, search base, user filter and attribute mapping with the directory team, and test the bind with a service account that has read-only rights. Confirm the role mapping and the non-owner login test in the same way as the SAML path. Done when a directory user can sign in and the bind account is documented with its rotation owner.

How a user's n8n login and role assignment flow through the identity provider

The login starts in the browser, where the user reaches the n8n editor and is redirected to the company identity provider over SAML, or the editor passes the credentials to the directory over LDAP. The identity system checks the user and returns a signed assertion or a bind result to n8n. n8n then matches the user to a record in its PostgreSQL database and applies the role and project access set by the administrator. The key check is the trust boundary: identity decisions are made inside the company system, while the self-hosted n8n instance trusts only the returned result.

Login path from the user through the identity system into n8n's role and user records.

Differences between SAML and LDAP setups in n8n

SAML single sign-on suits organizations that manage users in a cloud identity provider such as Okta or Azure AD. n8n documents SAML on the Business and Enterprise plans, with step-by-step guides for Okta Workforce Identity and Azure AD. The identity team typically supplies the identity provider metadata, the application's assertion mapping, and the attribute names for email and group membership. The n8n administrator then configures the service provider side in the instance settings.

  • Identity provider metadata: Ask the identity team for the metadata document or the endpoint URLs, the signing certificate, and the entity ID they will register for n8n.
  • Certificate ownership: The identity team usually owns the signing certificate and its renewal date. Agree in writing who receives expiry alerts, because an expired certificate blocks all logins.
  • Group-based role mapping: Map identity provider groups to n8n instance roles and project access during setup. Confirm which attribute carries the group claim and whether removed group members lose access at next login.
  • Queue mode: SAML settings live in the main instance, but workers and webhook processors must still hold the same encryption key so that credentials used by workflows decrypt correctly. Login behavior does not change the key requirement.
  • Local break-glass access: Decide which administrator account stays available if the identity provider is unreachable, and store its recovery path securely.

Confirm the supported identity providers, attribute names, and plan requirements in the current n8n SAML documentation before you start.

What drives n8n SSO project effort and cost

This table lists the factors that change how much work an n8n SSO and identity project takes and who pays for each part. Read each row as a question to answer before asking for a quote, and note the way to keep effort down. The main takeaway is that clean group design and fewer shared credentials before go-live usually reduce both effort and risk more than any single configuration step.

DriverWhy it changes effort or costHow to keep it down
Number of users and groups to mapEach group needs a decision on which n8n role or project it maps to, and large or nested directories take longer to validateRationalize groups in the identity provider before go-live and remove stale or duplicate groups
Number of identity providers or directoriesSAML, LDAP and any second directory each need their own configuration, test accounts and failure handlingAgree the single source of truth for identity early and confirm which directory n8n will read
Number of projects and roles to designProject membership and instance roles must be defined together, and each new project adds mapping rules and test casesStart with a small set of roles and projects, then add more only when a real owner asks for them
Volume of existing shared credentials to reviewEvery shared credential needs an owner decision, and credentials used by many workflows are costly to reassign laterRetire unused credentials and move ownership to named teams before the SSO cutover
Separation of production and test environmentsSeparate instances or environments double the configuration, test logins and change control stepsKeep identical role mappings in each environment and script or document the differences
Compliance evidence requirementsAssessors often ask for role definitions, access reviews and proof of deprovisioning, which adds documentation and sampling workAgree the evidence list with your auditor or compliance lead before design, then collect it during testing
Custom role logicMappings that depend on attributes beyond group membership need custom rules and extra test casesPrefer group-based mapping and treat any attribute-based rule as a scoped exception to review
Who is paid for each partIdentity provider admins, n8n configuration engineers and testers may sit in different organizations, so cost splits across partiesAsk for a fixed-scope quote that lists identity provider work, n8n configuration, testing and handover as separate items

How to test n8n SSO so it works and fails safely

Test each access path before any user depends on it. Start with one test account per role you plan to use, signing in through the identity provider rather than the local login. For each account, confirm that n8n grants the expected instance role and that the user sees only the projects and credentials assigned to them. Then sign in with a user who has no assignment at all and confirm they are refused or land with no usable access. Repeat the same checks after any change to role mapping, group membership or project assignments, because a mapping error often shows up as a user who can see too much rather than as a failed login. Confirm the exact role and project names against your own n8n version, since the administration screens change between releases.

Test the failures on purpose, in a non-production instance. Disable a test account in the identity provider and confirm that existing n8n sessions end and new sign-in attempts fail, noting how long that takes in your setup. Rotate or replace the SAML signing certificate in a staging copy and check what the administrator sees when the metadata no longer matches, and whether sign-in fails closed. Change the attribute name the identity provider sends (for example, the email or group claim) and confirm that users are refused rather than matched to the wrong account. For LDAP, stop the directory connection or point it at an unreachable server and confirm that existing local accounts are not silently granted new access. Record what each failure looks like in the admin interface and in the logs, because the on-call team will need that message to diagnose a real outage.

Control and test the local owner account, then keep the evidence. Confirm who holds the local owner credentials, where they are stored, and how they are used in an emergency, and test that the account still signs in when the identity provider is down. Decide whether direct local login stays enabled for everyone else, and verify that setting. Save the test plan, the test accounts used (named, not shared), the date and n8n version tested, the expected and actual result for each case, and screenshots or log extracts for the failures. Ask your security reviewers which evidence format they accept, and confirm with your identity provider team how their own logs will show the disabled-account and certificate tests so both sides can be compared.

Keeping n8n SSO from becoming a back door to shared credentials

Single sign-on decides who can reach n8n, but it does not decide what those people can do once inside. The controls below connect identity to credential access, encryption keys, admin rights and departures, so that a sign-in policy does not quietly expose the secrets stored behind your workflows.

Limit who can create and view shared credentials

Credentials are the most sensitive objects in n8n, because a workflow can use a stored credential without the user ever seeing the secret. Decide which roles can create credentials, which can only use them in workflows, and which can open the credential editor at all. Test this with a non-admin account that has been assigned to a project, and confirm that it cannot export or reveal the underlying secret. Confirm the exact sharing options for your plan before you write the policy.

SAML user management

Separate project access from instance admin

Project membership should grant access to the workflows and credentials a team needs, and nothing beyond that. Instance-wide owner and admin rights reach every project, so they should belong to a short list of platform staff. Map each identity provider group to one project role, and review that mapping whenever a team changes. A user who signs in through SSO should not inherit admin rights just because their group name looks technical.

Protect the encryption key on every node

n8n encrypts stored credentials with the main instance's encryption key. In queue mode, the same key must also be present on each worker and webhook processor so they can decrypt credentials at run time. Every copy is a place where the secret can leak, so restrict who can read the environment or configuration files on those hosts, and rotate the key through a planned process rather than by copying files by hand. Ask your team who holds each copy today.

Queue mode docs

Keep a controlled break-glass owner

If SSO fails, misconfigures or locks out administrators, someone must still be able to sign in. Keep one owner account that is not tied to the identity provider, store its credentials in a vault with dual control, and record every use. Test the procedure before go-live, and confirm with n8n how that account is handled on your plan. The account should be used only for recovery and should trigger an alert when it signs in.

Deprovision users when they leave

Disabling a user in the identity provider stops new SSO sign-ins, but it does not automatically revoke everything a user built. Check which workflows, credentials and API keys the person owns, and reassign ownership before removing the account. Confirm how SSO-provisioned users are deactivated in your version and whether active sessions end at once. Include contractors and service accounts in the same review, since they often outlive their projects.

Review admin and role changes regularly

Role drift is the most common way access widens over time. Schedule a periodic review of owner and admin accounts, project memberships and credential sharing, and compare the results with the identity provider groups. Audit logs and log streaming can record who changed what, but whether they are available depends on your plan, so confirm the exact feature set with n8n before you rely on them for evidence.

n8n pricing

What to monitor, document and review after n8n SSO goes live

Once SAML or LDAP sign-in is working, the ongoing risk shifts from setup errors to drift. Failed logins, certificate expiry and directory sync problems are the first signals that SSO is degrading, so route authentication failures from n8n's logs and from the identity provider's sign-in logs to the team that owns the platform. Watch for patterns rather than single failures: a burst of rejected assertions usually means a certificate or metadata change on one side, while repeated LDAP bind errors often point to a service account password rotation or a changed search base. Record the expiry date of the signing certificate in your calendar well before it lapses, since n8n and the identity provider must agree on it.

Access reviews need a fixed schedule and a named owner. Export the list of users with their instance roles and project memberships, compare it with the current directory groups, and remove anyone who has left or moved teams. Pay particular attention to people who hold project access to shared credentials, because a stale membership there exposes secrets rather than just workflows. Any change to n8n settings that affects sign-in, such as the callback URL, entity ID, attribute names or the group claim, also requires a matching update to the identity provider application. Treat that update as part of the change, not a follow-up task.

Because n8n ships minor releases roughly weekly, plan to retest SSO after every upgrade, including a fresh login through each path, a group-to-role check and a deprovisioning test with a disposable account. Confirm the release notes for any authentication change before applying the update. Four documents should exist before go-live and be kept current: the role-to-group mapping table, the identity provider configuration record (metadata, certificate dates, attribute mappings and the owner of each setting), a break-glass procedure that describes how a local administrator signs in if the identity provider is unavailable and how that access is logged and revoked, and dated test evidence from each retest. Ask your implementation partner to deliver these in a form your audit and security teams can review.

Questions teams ask before bringing in help for n8n SSO

Is SSO available on the n8n Community edition?

No. SSO and LDAP are included only in the Business and Enterprise plans, according to the n8n pricing page. If you run the free self-hosted Community edition, you cannot connect SAML or LDAP without moving to a paid plan. Confirm the current plan contents on the pricing page before you budget, because plan terms can change. Business is listed as self-hosted only, while Enterprise is offered for self-hosted or cloud. Your choice of plan also decides whether you can use the multi-main and other licensed features that often come up in the same review.

What does outside help for n8n SSO cost, and what drives the price?

The cost comes from the written scope, so the main inputs are the number of identity providers, the connection types (SAML, LDAP or both), the number of groups that must map to n8n roles and projects, and how many environments need configuration. Your n8n license is a separate cost paid to n8n, and it is what unlocks SSO and LDAP in the first place. Ask any partner for a fixed-scope quote that lists each deliverable, what your team must provide, what is tested before go-live and what is excluded. Confirm whether any follow-up support after go-live is included or priced separately.

How long does an n8n SSO project take?

The timeline depends on how quickly your identity team can provide access and decisions, more than on the n8n configuration itself. The main drivers are how clean your directory groups already are, whether the identity provider application already exists, how many approval rounds your security team requires, and how much testing runs against a non-production instance first. Ask for a schedule that separates the waiting time for your team from the hands-on work, and confirm which milestones depend on your approvals. Treat any duration you hear without a stated scope as a guess until it is written into the engagement.

What must our internal team provide before SSO work starts?

Your team needs to supply four things. First, administrative access to the identity provider, such as Okta Workforce Identity or Azure AD, so the n8n application can be created and its attributes set. Second, a group design that says which directory groups map to which n8n roles. Third, a decision on who holds the owner and admin roles and how project access is split across teams. Fourth, a named contact who can approve certificate, redirect URL and login-policy changes. Without these decisions, configuration tends to stall during testing, so settle them before the scoping call.

Can our own engineers set up SSO using the vendor guides?

Yes, the n8n documentation includes step-by-step SAML setup guides for Okta Workforce Identity and Azure AD, so a capable team can often complete a basic connection without outside help. The harder parts are the ones the guides do not settle for your organization: group-to-role mapping, handling users who already exist locally, testing logins with real accounts, and deciding how to revoke access when someone leaves. Check the n8n SAML user management documentation against your identity provider version before you start, and plan a test instance so a misconfiguration does not lock out administrators.

How do you agree on a fixed-scope SSO engagement?

A fixed-scope engagement starts with a written scope that names the identity provider, the protocol (SAML, LDAP or both), the n8n environments in scope, the role and project mapping rules, and the test cases that must pass. The document also lists what your team provides, the acceptance steps and what is excluded, such as changes to the identity provider beyond n8n or future group redesigns. DeployOpen agrees scope, deliverables and timelines in writing before work starts, and a quote follows from that written scope. Review exclusions carefully, because they decide most change requests later.

Who controls shared credentials once SSO is working?

SSO controls who can sign in, but it does not by itself decide who can use a shared credential inside a workflow. Access to credentials depends on the roles and project access you assign in n8n, so the same design work covers both. Ask your partner to document which roles can create, view and use each credential, and to test that a user outside a project cannot run a workflow that depends on it. Also confirm how the encryption key is protected, since workers in queue mode need it to read stored credentials.

How DeployOpen scopes, builds and hands over n8n SSO work

DeployOpen plans and implements n8n SSO and identity integration inside your own infrastructure, starting from a written scope. We connect the identity provider, map roles and project access, and document how shared credentials are controlled so your security and identity teams can review the result.

How we scope

  • Confirm your n8n edition and plan, since SAML SSO and LDAP require the Business or Enterprise plan.
  • Inventory your identity provider, user groups, and which people need admin, editor, or viewer access.
  • Agree in writing which projects, shared credentials, and environments fall inside the engagement.

How we build

  • Configure SAML or LDAP against your identity provider and test sign-in with a small pilot group first.
  • Map identity groups to n8n roles and project access, then verify that least-privilege rules hold for each role.
  • Test who can view, use, and edit shared credentials, and confirm that encryption key handling matches your standards.

How we hand over

  • Deliver a written record of the SSO configuration, role mapping, and project access model for your reviewers.
  • Provide a test script and results showing sign-in, deprovisioning, and credential access checks were performed.
  • Walk your administrators through how to add users, change group mappings, and review access over time.

How we support

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades, and continuous testing are available as a retainer after handover.
  • Ask us to confirm, during scoping, how identity changes will be retested after n8n version upgrades.

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.