Can n8n access your connected accounts without permission? Users, roles and credentials in self-hosted n8n
By Clément Lacaille (Tech-Bharat) · Published 28 July 2026 · updated 14 November 2026 · 13 min read · how we build and test
Running a Self-Hosted Automation Server for a Team — €29
PDF guide in English on this topic · 29 pages · October 2026 edition · 14-day guarantee
Short answer: no. n8n reaches an outside account (Gmail, Slack, a CRM…) only through a credential that someone created on the instance, by giving an OAuth consent or pasting an API key. Inside the instance, a Member can use another person's credential only once it has been shared with them, and even then without seeing the key; the owner, and admins where that role exists, have rights over all credentials, so choose who holds those accounts. The same rule holds for AI assistants such as Claude or Cursor: through n8n's MCP access they reach only the workflows someone explicitly enabled, with the rights of the user who connected them, and never the stored secrets (details below).
In n8n, permissions work on two levels: an instance role (Owner, Admin or Member) that applies everywhere, and a project role (Project Admin, Project Editor or Project Viewer) that applies inside each project, so the same person can edit in one project and only read in another; which of these roles you actually get depends on your plan, as the official documentation spells out (read on October 21, 2026).
As long as you're alone on your n8n instance, permissions are a non-issue: you're the owner, everything belongs to you, all is well. The day a colleague joins in, the concrete problems arrive fast — who changed the invoicing workflow last night? Why does the intern have access to the production CRM's API key? How do you give the marketing team the use of the Slack connection without handing over the token? Self-hosted n8n ships with a system of users, roles and sharing that answers these questions, with some honest limits worth knowing: part of the advanced features is reserved for paid plans. Here's how to structure a multi-user instance cleanly, knowing exactly where that line sits.

The owner account: the instance's first user
On the first launch of a freshly installed instance (see our Docker installation guide), n8n asks you to create the first account: the owner account. It is unique — an instance has only one owner — and it holds the broadest rights: user management, access to instance settings, visibility over resources.
Two practical consequences. First, this account should not be anyone's day-to-day working account — the n8n documentation itself recommends that owners create a second account with the Member role, because owners see and edit everything and "there is no way to see who created a particular workflow", so building as owner risks overwriting other people's work: reserve it for administration, protect it with a strong password and two-factor authentication, and do your daily work with a named member account. Second, keep careful track of who holds this account and how to recover it: an owner whose credentials nobody remembers means a database or command-line intervention to regain control.
Inviting members: SMTP or a link to copy
Inviting users happens from the instance settings, in the users section. Two scenarios:
- SMTP configured: n8n automatically sends an invitation email containing the activation link. The configuration is done through environment variables (
N8N_SMTP_HOST,N8N_SMTP_PORT,N8N_SMTP_USER,N8N_SMTP_PASS, among others) set in yourdocker-compose.ymlor the container's environment. - No SMTP: the invitation still works. n8n creates the pending account and displays an invitation link to copy, which you pass along to the newcomer yourself. The link lets them set their password and activate their account.
For a small team, the copied link is more than enough. SMTP becomes worthwhile once invitations are frequent, or to enable password resets by email — without SMTP, a forgotten password gets fixed on the administrator's side.
Global roles: owner, admin, member
n8n distinguishes three role levels at the instance level:
- Owner — the instance's single proprietor, with all rights.
- Admin — in the documentation's table, the same rights as the owner except access to the n8n Cloud console: view and share all workflows and credentials, create and view all projects, add and remove users, set up source control. Available on n8n Cloud Pro and Enterprise, and on self-hosted Enterprise.
- Member — the default role for any invitee: they create their own workflows and credentials, and only access other people's resources when those are explicitly shared with them.
This structure follows the classic role-based access control (RBAC) model, formalized by Sandhu, Coyne, Feinstein and Youman in "Role-Based Access Control Models" (IEEE Computer, 1996 — see the study): rather than assigning permissions one by one to each individual, you assign permission-bearing roles, which makes administration predictable and auditable. That is exactly the philosophy behind n8n's global roles and per-project roles.
One important point of honesty: on a self-hosted instance without Enterprise, count on the owner/member duo and explicit resource sharing; the Admin instance role and custom roles are listed for self-hosted Enterprise, and SSO/SAML and LDAP also belong to paid plans (for a free alternative in front of n8n, see our SSO with Authelia guide). Check what is actually enabled in your own interface before designing your organization around a feature you don't have.
Sharing workflows and credentials between users
By default, each member only sees what they created. Sharing happens resource by resource, and this is where n8n's model becomes genuinely useful.
Workflow sharing. A workflow's creator can share it with other users, who can then view it and, depending on the rights granted, edit it. This is the basic mechanism for shared maintenance: the invoicing workflow no longer belongs to "the person on vacation" but to the team that relies on it.
Credential sharing. This is the most valuable feature of the lot: sharing a credential lets a colleague use it in their workflows without ever seeing the secret. They select "Production CRM" from the list, their calls work, but the API key itself remains invisible and unexportable to them. You thereby separate the use of a connection from the knowledge of its secret — a pattern we detail in our article on securing credentials, and one that changes everything the day someone leaves the team: revoking an access no longer means rotating every key they may have seen.
AI assistants and MCP: what they can reach
The question often comes from someone about to plug Claude, ChatGPT or Cursor into n8n. n8n offers two different doors, and neither hands over your connected accounts by default. Everything below comes from the n8n documentation page "Connect to n8n MCP server" (read on November 14, 2026):
| Instance-level MCP access | MCP Server Trigger node | |
|---|---|---|
| Who turns it on | An instance owner or admin, under Settings > Instance-level MCP | Whoever builds the workflow that contains the node |
| What a client can reach | Only workflows enabled for MCP, one by one or by project/folder; search returns previews of every workflow the user can view, never full data | Only the tools of that one workflow |
| Whose rights apply | The n8n user who connected the client (OAuth sign-in or personal access token) | The node's own authentication setting |
| How to cut it | Revoke a client, rotate the token, disable MCP access, or set N8N_DISABLED_MODULES=mcp on self-hosted |
Unpublish the workflow or change its authentication |
Four points decide whether an AI client can touch an account:
- Nothing is exposed by default. Enabling MCP for the instance exposes no workflow; each one needs its Available in MCP toggle. The "Auto-expose new workflows" setting is off by default, and only owners and admins can change it.
- The client never sees the secret. It runs a workflow, and that workflow uses a credential someone already created. What it can do is whatever the exposed workflow does with that credential: expose a narrow, read-only workflow on one account rather than a general AI agent wired to every credential, because an agent can call every tool it contains.
- Clients are not isolated from each other. All the clients you connect see all the workflows you enabled; the documentation says you can't restrict specific workflows to specific clients. Users stay separated, though: each one only sees the MCP-enabled workflows they have access to, so a Viewer gains nothing by going through MCP.
- OAuth callback URLs are open by default. n8n accepts any callback URL unless an owner or admin switches Allowed callback URLs to "Only trusted URLs" (available from n8n 2.33.0). On a shared instance, list your clients' URLs.
The MCP Server Trigger is the riskier of the two if left as is: on n8n 2.46.6, in the lab behind our MCP guide, its authentication defaulted to None, so anyone who has the URL can call the tools. Our MCP in n8n guide shows the node, and Model Context Protocol in Practice covers authentication, sessions and what a tool result can inject into an agent. For the instance-level server that lets an assistant build workflows, see our article on n8n's instance-level MCP server.

Project permissions: Project Admin, Editor and Viewer
A project groups workflows and credentials, and each member of the project gets a project role. Instance roles say what someone can do across the whole instance; project roles say what they can do inside one project, and a user can hold different project roles in different projects. Here is the permission table from the n8n documentation ("See available roles"):
| Permission | Project Admin | Project Editor | Project Viewer |
|---|---|---|---|
| View workflows, credentials and executions in the project | Yes | Yes | Yes |
| Add, edit and delete workflows and credentials | Yes | Yes | No |
| Execute workflows | Yes | Yes | No |
| Manage members (invite, remove, change roles) | Yes | No | No |
| Modify the project (rename, delete) | Yes | No | No |
| Use external secrets in credentials | Yes* | Yes* | No |
| Manage project secret vaults | Yes* | No | No |
* Only once an instance owner or admin turns on "Enable external secrets for project roles", a setting available from n8n 2.13.0.
Three details matter in practice. The Viewer is genuinely read-only: they can't even run a workflow manually. By default, only Project Admins can create end-user credentials (the type where each user connects their own account). And variables and tags are not covered by RBAC: they stay global to the instance, so a project role does not hide a variable from anyone.
Which plan gives which role
| Feature | n8n Cloud | Self-hosted |
|---|---|---|
| Projects and project roles (RBAC) | All plans | Registered Community, Business, Enterprise |
| Project Editor role | Pro | Enterprise |
| Project Viewer role | Enterprise | Enterprise |
| Admin instance role | Pro, Enterprise | Enterprise |
| Custom roles (instance and project) | Enterprise | Enterprise |
The documentation adds that "different plans have different numbers of projects and roles" without listing the limits, so look at the roles offered in Project settings → Project members on your own instance before promising a team its own space. The pricing page, for its part, lists Project Editor, Project Viewer and instance admins under self-hosted Business, which the role pages reserve for Enterprise; our guide to running a self-hosted n8n team without Enterprise compares both sources and includes an access-rights matrix template for teams that stay on the free edition.
Creating projects and moving work into them
- Who creates projects: instance owners and instance admins. Project Admins then add and remove members from Project settings.
- Moving a workflow or credential to another project changes its owner and removes all existing sharing. When you move a workflow, n8n offers to share the credentials it uses (if you're allowed to) and warns that the workflow may stop working if its credentials aren't available in the target project.
- Deleting a project asks what to do with its content: transfer the workflows and credentials to another project, or delete them.
If your plan doesn't give you the project roles you need and isolation between teams is a genuine need, two pragmatic alternatives exist: separate instances per team (self-hosting makes this option inexpensive, as our analysis of the real cost of self-hosting shows), or separation by environment rather than by role, which is the subject of the next section.
If the people you would invite are clients rather than colleagues, roles are the wrong tool. n8n's License FAQ allows building and running workflows for clients on your instance only "as long as your clients do not have the possibility to create or edit them": a client with an editor account on an instance you host takes you outside the Community licence, whatever its role. Clients get the outputs (emails, dashboards, files), and their separation comes from naming, dedicated credentials or one instance per client. Our PDF guide Selling Automation Services covers that setup for freelancers and agencies, from shared or dedicated instances to the contract and data processing clauses under EU law.
Best practices for a shared instance
Apply the principle of least privilege. Each user should receive only the access strictly required for their task — a principle formulated as early as 1975 by Saltzer and Schroeder in "The Protection of Information in Computer Systems" (Proceedings of the IEEE — see the study), and one that hasn't aged a day: the fewer rights an account holds, the less its compromise or its mistakes cost. Concretely: member role by default, explicit shares, and no production credential shared "just to unblock things."
One service credential rather than personal accounts. When a workflow sends emails or posts to Slack, create a dedicated service account ("automation@your-domain") and share that single credential, rather than letting everyone plug in their personal account. When someone leaves, nothing breaks; and the workflows' actions are clearly identifiable as such in the target tools.
Separate dev and prod rather than multiplying roles. Trying to solve everything with permissions on a single instance quickly turns into a Rube Goldberg machine. A development instance where everyone experiments freely, and a locked-down production instance where only one or two accounts deploy, solves most of the problem with two roles and zero advanced RBAC. Our guide on dev/prod environments details this architecture.
Track who changes what. Permissions say who can act; you also need to know who did act. Versioning workflows in Git (see our article on versioning workflows with Git) gives you a readable history of changes, with author and date, independently of what your n8n plan logs natively.
Cutting an access when in doubt
When someone leaves, a laptop is lost or a connection looks wrong, work from the outside in:
- On the provider's side: remove the n8n app from the connected apps page of the Google, Microsoft or Slack account, or revoke the API key. This invalidates what n8n holds, even if a copy of its database exists elsewhere.
- In n8n: delete the credential or reconnect it with a service account, deactivate the person's n8n account, and check which workflows were shared with them.
- For AI clients: revoke them under Settings > Instance-level MCP > Connected clients; a client that uses an API key does not appear in that list, so rotate the access token instead, which revokes the previous one.
Stored credentials are encrypted with the instance's N8N_ENCRYPTION_KEY: keep a copy outside the server, as explained in our encryption key guide, since a database backup is useless without it.
Common pitfalls
- Doing daily work with the owner account. Any slip of the hand then happens with maximum rights, and the history no longer distinguishes administration from routine use. Create yourself a named member account by day two.
- Assuming a feature seen in the documentation is included in your plan. Project Editor and Viewer, the Admin role, custom roles, SSO/SAML, LDAP: the n8n documentation describes everything, your license doesn't enable everything.
- Moving a workflow to a project without its credentials. A move removes existing sharing; if the credentials don't follow, the workflow can stop working in its new project. Check your own interface before promising your team any isolation guarantees.
- Bypassing credential sharing by copying keys around. If everyone recreates "their own" credential with the same API key pasted from a Slack channel, you lose the benefit of the masked secret and revocation becomes impossible to track. One credential, one owner, explicit shares.
- Forgetting to deactivate leavers' accounts. An orphaned member account keeps its access and its shares. Add n8n deactivation to your offboarding checklist, right alongside email.
- Multiplying roles to compensate for a missing dev/prod separation. If you catch yourself inventing naming conventions to flag the "do not touch" workflows, that's the sign you need a second instance, not one more role.
Going further
User management is one of the structural differences between self-hosting and the cloud — our self-hosted vs cloud comparison will help you position your needs if you're still hesitating. And because permissions only say who can act, not what the workflows actually do with the data, the Compliance & Audit Pack (€149) naturally complements this access control with an actionable audit trail: processing logs, execution traceability and GDPR compliance, in line with our article on the GDPR audit trail with Supabase. Controlling access to the instance, then tracing what happens on it: two halves of the same requirement.
FAQ
Frequently asked questions
Can n8n access my connected accounts without permission?
No. n8n reaches an outside account only through a credential that someone created on the instance (an OAuth consent or an API key). Inside the instance, a Member uses another person's credential only when it is explicitly shared with them; the owner, and admins where that role exists, have rights over all credentials. A user a credential is shared with can use it in workflows without seeing the key.
Can I invite users to self-hosted n8n without configuring an SMTP server?
Yes. The SMTP configuration is only used to send the invitation email automatically. Without SMTP, n8n still creates the invited account and displays an invitation link for you to copy and pass along to the new user yourself (through internal messaging, for instance). The link lets them set their password and activate their account exactly as if they had received the email.
Can a user I share a credential with see my API key?
No, and that's the whole point of credential sharing in n8n. The recipient can select the credential in their own workflows and use it to run calls, but they can neither display nor export the underlying secret (API key, password, token). This lets you grant the use of a connection without revealing its secret — a key building block for applying the principle of least privilege.
What's the difference between the admin role and the owner role in n8n?
There is only one owner per instance: the account created at installation. In the n8n documentation's permission table, owner and admin share almost everything (view and share all workflows and credentials, create and view all projects, add and remove users, source control); only the owner can access the n8n Cloud console. The catch is availability: the Admin instance role is listed for n8n Cloud Pro and Enterprise, and for self-hosted Enterprise only.
Are n8n projects available on the self-hosted Community plan?
According to the n8n documentation, projects and project roles (RBAC) are available on self-hosted Registered Community, Business and Enterprise, and on all n8n Cloud plans, but "different plans have different numbers of projects and roles". The Project Editor role is listed for Cloud Pro and self-hosted Enterprise, the Project Viewer role for Cloud Enterprise and self-hosted Enterprise, and custom roles for Enterprise only. Check the roles offered in Project settings on your own instance; if strict isolation is critical without Enterprise, separate instances per team remain the simple answer.
Can an AI agent connected to n8n through MCP use my credentials without my consent?
Not on its own. With instance-level MCP access, an owner or admin must first enable MCP for the instance, then each workflow must be enabled for MCP one by one (or by project or folder); a client can only run or edit those workflows, with the rights of the n8n user who connected it, and it never receives the stored secrets. Search is the exception: it returns previews of every workflow that user can view. A workflow you expose does use its credentials when the client runs it, so expose narrow workflows rather than a general agent wired to every account.
How do I revoke n8n's access to a connected Google or Microsoft account?
Inside n8n, delete the credential or reconnect it with a different account; for an AI client, revoke it under Settings > Instance-level MCP > Connected clients, or rotate the access token if it connects with an API key. Then revoke the n8n app on the provider's side, from the connected apps page of the Google or Microsoft account: that invalidates the tokens n8n holds even if a copy of the database exists somewhere.