n8n end-user credentials for per-user OAuth access

End-user credentials let an n8n workflow act with the triggering user's own OAuth connection instead of a shared login. This page covers the design choices, setup, security and the limits to confirm first.

On this page

When n8n per-user OAuth access fits a workflow

This page explains how n8n end-user credentials provide per-user OAuth access, and the first decision is whether your workflow should act as the person who triggers it. A workflow that reads or writes someone's mail, calendar, files or CRM records is a good candidate when the action should be attributable to that individual and should stop working the moment their access is removed. Before building, decide which systems need per-user access, which workflows can keep a shared service account because they act for the whole team, and who owns each connection when a person leaves or changes role. Confirm which n8n plans and versions include this feature by checking n8n's current documentation and n8n pricing, because availability by edition can change between releases.

The core trade-off is audit clarity against operational load. Per-user connections make every external action traceable to a named account, which helps reviewers answer who did what in a mail or CRM system. The cost is that each user must complete an OAuth consent flow, each connection needs its own token refresh and revocation handling, and a workflow that expects a particular user may fail silently when that person's consent expires or they leave the organization. Shared service accounts avoid that overhead but blur attribution and concentrate access. Estimate how many people will connect, how often they will re-consent, and whether your identity provider and offboarding process can disable a connection quickly. Ask your OAuth provider administrator which consent scopes and tenant policies will apply to each user.

How the triggering user's connection reaches a workflow run

The diagram starts with a user who triggers a workflow on the n8n main instance. The instance looks up the credential template in the database, then selects the connection record that belongs to that user rather than a shared login. The execution uses that connection to call the external OAuth provider. Check that the stored connection and the encryption key sit inside the trust boundary, and confirm in your own environment which records each run reads and writes.

Shows how a triggering user's own connection, not a shared login, is picked up by a run.

How credential templates become per-user connections

A credential template defines the OAuth application: the client ID and secret registered with the provider, the redirect address, and the scopes the workflow may request. A per-user connection is what a single person creates when they click Connect through that template, and it holds only that person's authorization and tokens. The template is shared configuration, while each connection belongs to one account. Before building anything, your team should decide who owns the OAuth client registration in the provider's console, since that owner controls the app's consent screen, its allowed redirect addresses and any rotation of its secret. Assign that ownership to a named platform or identity team rather than to whoever built the first workflow.

Next, decide which scopes each template requests. Request the narrowest set a workflow needs, and split templates when different workflows need different permissions, so a read-only reporting flow never carries write access. Users will see these scopes on the provider's consent screen, so the list should match what your security team has approved. Also decide who may create templates and who may use them, because a template that requests broad scopes is a standing grant that every connected user accepts.

The harder decision is how a workflow picks the connection of the person who triggered it. The intended pattern is that a run uses the connection of the triggering user, not a shared login, but the exact selection mechanics differ between n8n releases and between trigger types. Confirm in the n8n version your organization runs how credential selection behaves for user-triggered runs, what happens when the triggering user has no connection, and whether the run fails or falls back to another credential. Test these cases with two test accounts before any production workflow depends on them, and record the results as part of your change evidence.

Per-user connections or a shared service login: choosing by situation

Workflows that read or act on an individual's own data, such as a personal mailbox, calendar or cloud drive, are the strongest case for a per-user connection. The data belongs to the person, and the provider's own permission model already limits what that person can see. A shared login would give the workflow access to mailboxes the triggering user should never reach, so the provider's logs would show one service account touching many people's data.

  • Audit trail: Provider logs name the individual account that performed each action, which matches how the mailbox owner expects access to be reviewed.
  • Departures: When an employee leaves, their connection stops working. Workflows that depended on them fail until someone reassigns them, so plan a handover step.
  • Consent revocation: A user who removes the app from their provider account silently breaks every run that used their connection. Expect failed executions and alerts rather than a quiet stop.
  • Maintenance: Someone must track which workflows belong to which people, reauthorize connections after password or policy changes, and review scopes when the provider changes them.
  • Data handling: Confirm where execution data and any stored attachments are kept, since personal content may pass through n8n's execution records.

Before you commit, check with your identity and legal teams whether the provider's consent screens and scopes match your data handling policy.

Configuration options and when each one fits

This table compares the configuration choices a team makes for per-user OAuth in n8n, with the situations where each option fits and the operating effort it adds. Read each row as a decision: the first column names the choice, and the other columns show when it suits your organization and what you will maintain afterward. The main takeaway is that ownership of the OAuth client and the scope of each template determine most of the ongoing work.

DecisionWhen it fitsOperating effort it adds
OAuth client ownership: one registration per organizationA single identity tenant, one set of redirect settings and a small number of connected servicesFewer app registrations to renew and monitor, but every environment and user group shares one consent surface that must be reviewed together
OAuth client ownership: one registration per environmentDevelopment, staging and production need separate consent screens, test users or data boundariesMore registrations to create, rotate and document, and each one needs its own redirect URL and client secret handling
Scope granularity per credential templateNarrow templates for read-only tasks or single mailboxes, where a reviewer can explain each permissionMore templates to name, test and reconcile with the identity provider when a provider changes scope names
Broad scopes shared across templatesTeams that need many workflows on one connected service and accept a larger consent promptFewer templates, but a compromised or misused connection exposes more data and reviews take longer
Who can create connectionsOnly platform administrators create connections for users who are not trusted to consent to broad accessAdministrators handle every onboarding request, which adds a recurring queue; open creation shifts review to later audits
Private connections per userEach person's workflow must act with their own mailbox, calendar or files, and no one else should see that accessEach user completes consent and reconnects after changes; support requests rise when a user leaves or changes role
Shared connections within a projectA team runs one service account or shared queue and members need the same accessOwnership and removal rules must be kept current, since shared access persists after a person changes teams
Revoked consent handling: fail the execution and notifyWorkflows where acting on stale or missing access is risky, such as sending messages or writing recordsSomeone must watch failure alerts and contact the user, and the execution history will show gaps that need explanation
Revoked consent handling: queue or retry for reconnectionWorkflows where delayed processing is acceptable and users can reconnect quicklyRetry logic, queue limits and stale-data cleanup need design and monitoring, and retries can mask a broken connection
Identifying the triggering user in the workflowTrigger data or an authenticated webhook carries a reliable user identifier that maps to the right connectionMapping logic must be tested for each trigger type, and identifiers from forms or unauthenticated sources need validation

Setting up n8n end-user OAuth credentials step by step

This sequence takes a workflow from a shared login to a per-user connection, with a checkpoint at each stage so the change can be reviewed and recorded before users rely on it.

  1. Confirm plan and version support

    The platform owner confirms that the n8n edition, plan and version in each environment include the end-user credential feature. Check the current plan details on the n8n pricing page, since SSO, environments with Git and log streaming are listed only for Business and Enterprise, and confirm the feature set against the release notes for the version you run. Record the edition, plan and version for every instance in the change ticket. Done when each environment's version and plan are written down and someone other than the author has checked them against the vendor pages.

  2. Register the OAuth application per environment

    The identity or security team registers an OAuth application with the provider, once for each environment such as development, staging and production. Each registration gets its own client ID, client secret and redirect URL that points at that instance's callback address. Keep secrets in your secrets store, not in workflow exports or chat. Done when each environment has a separate registration and the provider's console lists the exact redirect URL you will use.

  3. Create the credential template with minimum scopes

    An n8n owner or admin creates the OAuth credential type that the workflow will use and requests only the scopes the workflow needs to read or write. Scope requests that are broader than the workflow's actions are the most common reason a consent screen fails review, so compare each scope to a specific node operation. Save the template and note the scope list in the change record. Done when the template's scope list matches the documented operations one for one and no scope is left for future use.

  4. Test the connection with a pilot user

    Choose one pilot user who has a real account in the target service and have them connect through the template. Confirm the consent screen shows the expected application name and scopes, and that the connection appears under their own n8n account rather than a shared one. Run one harmless read operation and record the result. Done when the pilot user's connection works, the other team members cannot see or use it, and the test run is logged.

  5. Build the workflow with the triggering user's connection

    The workflow builder adds the nodes that call the service and selects the credential that belongs to the person who triggers the run, following how your n8n version resolves per-user connections. Keep the workflow's outputs free of other users' data and confirm that execution history is viewable only by people allowed to see that data. Test with two different users and confirm each run uses its own account. Done when two users produce runs that each reference their own connection and no run falls back to a shared login.

  6. Run failed and revoked consent tests

    The tester declines consent on the provider screen and confirms the workflow fails with a clear error rather than silently using another account. Then the pilot user revokes the application in the provider's account settings and the tester runs the workflow again to confirm it stops and prompts for reconnection. Record the error text and the time of each test. Done when both negative tests produce the expected failure and neither run touches data from another user.

  7. Record the review in the change process

    The change owner attaches the scope list, redirect URLs per environment, pilot test results and negative test outcomes to the change record, then gets approval from the reviewer who controls production releases. Store the record alongside the workflow's version history so auditors can trace who approved the credential and the workflow. Confirm the approver's name, date and decision are on the record. Done when the change is approved in writing and the production instance has the matching redirect URL and template.

Security risks to design for with per-user tokens

Per-user OAuth moves access decisions from a shared login to each person's own grant, which changes where tokens sit, what they can reach and what breaks when someone leaves. The cards below pair each risk with the control to set and the check to run in your own instance before users connect.

Token storage and the encryption key

Each per-user OAuth connection stores access and refresh tokens in the n8n database, encrypted with the instance encryption key. Anyone who obtains both the database and that key can read every user's token. Keep the key in your secrets store, restrict who can read the n8n configuration, and back up the database and key under separate controls. In queue mode, confirm that every worker and webhook processor receives the same key, since the main instance's key must be shared with them. Verify that a restored backup still decrypts its credentials on a test instance.

Queue mode docs

Scope creep in credential templates

A credential template defines the OAuth scopes requested at connect time, and a template built for one workflow often asks for broader access than the workflow needs. Once a user grants those scopes, every workflow using that template can use them. Write templates with the narrowest scopes each workflow needs, and create separate templates for read-only and write actions. Review the scope list in each template before publishing it, and confirm in your instance that the consent screen shows the scopes you expect.

Exposure through execution data and logs

Execution records store the input and output data of each node, and that data can include personal records, message bodies or file contents pulled through the user's account. Logs and log streaming destinations may also capture payloads. Decide which workflows keep execution data, set retention for those executions, and restrict who can open them. Check whether any node writes the access token into an output or an error message, and test a failed run to see what it records.

Broken or changed behavior after offboarding

When an employee leaves or revokes consent at the provider, every workflow that depended on that person's connection starts failing, or in some setups keeps running under a stale grant. Failures may surface only in a schedule that runs at night. Define an owner for each per-user credential, add a step to the offboarding process that lists the workflows using it, and set alerting on failed executions. Test revocation in a staging instance and confirm which workflows stop, which fail quietly and which need a new owner.

Actions beyond the person's intent

A workflow runs with the triggering user's connection, so a webhook or a shared form can cause actions the user never meant to take, such as sending mail or changing a record in their name. This is more likely when a workflow accepts input from other people or from an AI agent. Limit which triggers can run per-user workflows, require explicit human approval for write actions where your process needs it, and log which account performed each action. Test with crafted inputs that try to make the workflow act on data outside the user's role.

Where stored credentials and execution data live in queue mode

In n8n queue mode, the main instance receives triggers and webhooks and passes executions through Redis to a pool of workers, and those workers read and write workflow data in PostgreSQL. Per-user connections sit in the same database as every other credential, so the database and the encryption key are the two places where per-user access lives. Plan for both before you add a second worker. The n8n queue mode documentation is the reference for the component layout in the version you run.

The main instance's encryption key must be shared with every worker and webhook processor node so they can decrypt stored credentials. For per-user OAuth, that means each user's connection record depends on the same key. If the key is lost, rotated without a plan, or mismatched between nodes, every user's connection can fail at once, not just one shared login. Treat the key as a single secret with a named owner, store it in your secrets system, and document how each worker receives it. Back up the key separately from the PostgreSQL dump, because a database backup without its key cannot restore usable connections.

Confirm in n8n's documentation for your exact version how execution data is retained, and whether any of it is isolated per user. Do not assume that a user's run history, failed execution payloads or retained input and output are hidden from other users with access to the instance or its database. Ask your administrators which execution data is saved, for how long, and who can query the PostgreSQL tables directly. Record the answers before you promise end users that their account data stays private.

Preview limits and what to confirm in your environment

Per-user OAuth through credential templates depends on details that vary by n8n version, plan and identity provider. The cards below list the items to verify with n8n and in a test environment before any production workflow relies on the pattern, starting with the feature's status.

Preview status and support

Confirm whether per-user credential connections are a Preview feature in the exact n8n version you plan to run. Preview features can change between releases, so ask n8n what support, stability and upgrade guarantees apply, and record the version you tested. Repeat the check each time you plan an upgrade, because a feature in Preview in one release may behave differently in the next. Treat your test results as tied to that version.

n8n release notes

Plan eligibility

Do not assume this feature follows the same plan rules as SSO, Git environments and log streaming, which the pricing page lists under Business and Enterprise. Ask n8n in writing whether per-user credentials are available on your self-hosted edition and plan, and whether any part of it is restricted. Check the license terms as well, since a paid plan may be needed for the feature itself and for the enterprise files it depends on.

n8n pricing

Packages and Git promotion

Test how a workflow that uses a per-user credential template moves between instances as a package or through source control. Confirm whether the template travels with the workflow, whether each target instance needs its own OAuth app registration, and whether user connections are carried over or must be recreated. Verify that no connection data or secret ends up in a Git commit or exported file.

Expired or revoked connections

Simulate a refresh token that expires, a user who removes the app from their account, and a user who leaves the organization. Record whether the next scheduled run fails cleanly, whether the owner or admin is notified, and whether the workflow can fall back or pause safely. A silent failure can leave automations stopped for weeks without anyone noticing, so confirm the alerting path before go-live.

Connection and user limits

Ask n8n whether there is a cap on the number of per-user connections a single credential template can hold, and whether that cap differs by plan or version. Test with a realistic number of users in a staging instance and watch for slowdowns in the editor or execution queue. Document the answer so the rollout plan can cover the full user population without surprises.

Provider consent and admin policies

Confirm with each OAuth provider whether its consent screen, app approval rules or tenant policies block users from authorizing a self-hosted n8n callback URL. Microsoft tenants and Google Workspace domains often restrict third-party apps, and an admin may need to approve the app before any user can connect. Run the full consent flow with a standard user account, not an administrator account, before you commit to the design.

How much does per-user OAuth setup for n8n cost and how long does it take?

What drives the cost of per-user OAuth setup for n8n?

The cost is driven mainly by how many OAuth services need per-user connections, how many workflows must run under the triggering user's account, and how much of your identity and security review must happen before go-live. Each OAuth provider has its own app registration, consent screen, redirect URLs and admin approval steps, so every service adds configuration and testing work. Workflows that touch sensitive data or several systems take longer to review. Ask for the work to be itemized by service, workflow group and environment, so you can see which parts scale and which are one-time. Recurring costs usually come from maintaining the setup after go-live, which should be stated separately in the quote.

How long does a per-user OAuth pilot take, and what sets the timeline?

A pilot's length depends on the number of OAuth services in scope, how quickly your identity team can register applications, and how many review cycles your security and compliance owners require. Most delays come from waiting on external approvals, such as admin consent in Microsoft or Google workspace settings, rather than from n8n configuration itself. Ask for a timeline that lists each dependency, who owns it and what happens if an approval is late. Confirm the exact n8n edition and version you will run before scheduling, because feature availability and release timing affect the plan. Any duration in a proposal should be tied to the agreed written scope.

What do your identity, security and workflow owners need to provide?

Identity owners need to approve OAuth application registrations, set redirect URLs, confirm which tenant or domain users sign in with, and decide who can grant consent. Security owners need to define which data each per-user connection may read or write, how tokens are stored and encrypted, and which audit records they require. Workflow owners need to list the workflows that must run as the triggering user, the expected inputs and outputs, and what should happen when a user has not connected an account. Agreeing these answers early prevents rework, because they determine the credential templates and the isolation of execution data.

Can an internal team set up per-user OAuth for n8n without a partner?

Yes, an internal team can do this if it has administrative access to the identity provider, the OAuth provider consoles and the n8n instance, and enough time to test each service. The work is mostly configuration and verification rather than custom code, but it requires careful reading of how each provider handles consent, token refresh and scopes. The main risks for an internal team are inconsistent configuration across environments, missed review steps and unclear ownership after go-live. A partner is most useful when you need a fixed scope, written deliverables and documented evidence for an assessment. Whichever path you choose, decide who will own the credential templates and the connection process before starting.

What should a written quote for per-user OAuth setup include?

A useful quote lists the in-scope OAuth services, workflows and environments, and the n8n edition and version it targets. It should state what is one-time work, such as app registrations, credential template design and testing, and what recurs, such as upgrades, monitoring or retainer support. Ask for the assumptions behind the estimate, including who provides identity provider access, test accounts and approvals, and what happens if those inputs are late. The quote should describe acceptance criteria, the retest or verification process and how changes after sign-off are priced. DeployOpen works from a written scope, and most engagements are fixed-scope, so request the scope document alongside the price.

What happens after go-live when users leave or change roles?

After go-live, each per-user connection belongs to a specific account, so offboarding and role changes must be part of the operating process. When an employee leaves, their OAuth grants should be revoked at the provider and the n8n credentials tied to that account should be reviewed, disabled or reassigned. When someone changes roles, you need to decide whether their workflow access and connections should change with them. Ask the implementation partner to document these steps, who performs them, and which logs show the change. Ongoing support, upgrades and continuous testing can be covered by a retainer, which should be priced separately and defined in writing.

How DeployOpen scopes and delivers per-user n8n credentials

DeployOpen treats per-user OAuth in n8n as a design decision before it is a build task, because it decides which accounts a workflow can touch and where execution data lives. We scope the credential model, build it inside infrastructure you control, and hand over the configuration, tests and runbooks your team needs to operate it.

How we scope

  • We list every workflow that must run with the triggering user's account and the OAuth services each one calls.
  • We confirm which n8n edition and plan your organization holds, since per-user credentials depend on the features that plan includes.
  • We agree the Preview limits in writing, so your team knows which parts of the feature you may not rely on for production.

How we build

  • We design credential templates and per-user connection flows for each OAuth provider, with scopes limited to what each workflow needs.
  • We configure isolated execution data and access controls so one user's run cannot expose another user's tokens or outputs.
  • We test connect, reconnect, revoke and expired-token paths in a non-production instance before anything moves to production.

How we hand over

  • You receive the configuration, credential template definitions, OAuth app registration notes and a record of the decisions taken.
  • You receive test results, a list of known Preview limitations and the steps to confirm them again after an n8n upgrade.
  • You receive a runbook covering onboarding a new user, revoking access, rotating client secrets and investigating a failed connection.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer, including retesting after each n8n release you adopt.
  • Ask any quote to state which OAuth providers, workflows and instances are included, and which items are excluded.

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.