Why teams create custom roles in n8n Enterprise
A shared, self-hosted n8n instance usually starts with a few people who need broad control and many who need narrow access. The built-in roles are a reasonable starting point, but they are set at a level that suits a generic team. Some groups end up with more power than their work requires, such as an analytics team that can edit production credentials they never use. Others are blocked from routine tasks, such as a support lead who needs to move workflows between folders but cannot reach the instance settings they would need to do it. Custom roles let you match permissions to the job instead of forcing every team into the same shape. In n8n, this work covers both instance-level roles, which govern the whole installation, and project-level roles, which govern what a person can do inside one project and its workflows, credentials and folders.
Custom roles are part of the Enterprise edition. The researched facts for this topic confirm that n8n's source-available license restricts files marked with .ee to holders of a valid n8n Enterprise License, and the pricing page places the role and access features used for shared instances in the paid tiers. Before you plan around them, confirm with your n8n account contact or the pricing page which edition and license terms your instance needs, because a Community or Business deployment will not offer the same role editor. Design custom roles when your organization has several distinct teams sharing one instance, when auditors or security staff expect documented least privilege, or when one team needs to delegate a task such as managing members of its project without receiving full administrative rights.
Treat role design as a documented decision, not a one-time setting. Exact permission names, the list of resources each permission applies to, and how inherited permissions combine can change between releases, so confirm them in the n8n documentation for the version you run before you draft any role. Write down the job each role serves, the people who will hold it, and the actions it must not allow. A short test plan with one test user per role, run on a non-production instance, will show gaps before real teams depend on the roles. Plan a recurring review as well, because roles that fit today's projects often drift as people move teams and new workflows appear.
Which role scope fits each access need
This table compares the scope decisions behind a custom role design: instance versus project roles, custom versus built-in roles, and folder or credential permissions versus workflow-only access. Read each row for when the option fits and what it risks, then confirm the exact permission names in n8n's role documentation before you build anything.
| Decision | When it fits | Risk to watch |
|---|---|---|
| Instance-level role | Staff who manage the whole instance, such as platform owners or security reviewers who need settings access across every project | Broad grants reach every project and credential, so one over-scoped role can expose the whole tenant |
| Project-level role | Team members who build and run workflows inside one team's project and should not see other teams' work | Users added to several projects can accumulate access, so review memberships as well as role names |
| Built-in role | Common patterns that match n8n's shipped roles closely enough that a custom role adds no real precision | Built-in roles may include permissions a team does not need, and upgrades can change what they contain |
| Custom role | A delegated task, such as managing credentials without editing workflows, that no built-in role covers cleanly | Each custom role is another object to document, test and re-review after every n8n upgrade |
| Workflow-only access | Editors who change logic but must not read or rotate the credentials those workflows use | Workflows still run with credentials the editor can reference, so confirm whether execution rights expose secret values |
| Folder or credential permissions | Separating sensitive credentials or folders from general workflow work within a shared project | Folder and credential scopes are easy to misread, so test them with a non-admin account before rollout |
| Delegated admin without full Admin | Helpdesk or team leads who manage memberships or invitations but should not change instance settings or security policies | Any admin-type permission can still affect access for others, so limit it to named people and log its use |
How instance roles, projects and resources fit together
The decision path starts at the identity provider, where a group membership can feed the assignment of an instance role and project roles. Each user then reaches workflows, credentials and folders only through the projects they are placed in. The trust boundary around credentials marks where access must be reviewed most closely, because a user who can use a credential can often reach the data it opens. Check each hand-off against the role documentation for your edition before you write custom roles.
Access flows from identity groups and instance roles through projects to workflows, folders and credentials.
How to design a least-privilege role set
Design the role set from the work people actually do, not from the roles n8n ships with. Start by listing the recurring tasks in your instance: building workflows, reviewing changes, running and monitoring executions, managing credentials, and administering users and projects. For each task, identify the smallest set of permissions that completes it and nothing more. The most common over-grant is a single role that combines credential access with workflow editing. A builder who can edit workflows and also read or use every credential in a project can exfiltrate secrets through a workflow, so keep those two capabilities apart unless a specific team needs both. Where a reviewer only needs to inspect, give them read access rather than an editor role with a note to be careful.
Expect a trade-off between granularity and administrability. Many narrow custom roles match your task list closely but multiply the combinations an administrator must maintain, review and explain during an audit. A few broad roles are easy to assign but tend to grow over time as exceptions accumulate. A practical middle path is a small number of named roles, each tied to one task, with custom roles reserved for the specific permissions that a standard role grants too broadly. Write down who owns each role, what it is for and which task it serves before you create it. Delegated administration deserves its own decision. Tasks such as inviting users, resetting access or managing project membership can often be handed to someone without full Admin, but only if the role grants exactly those actions. Confirm in a test instance, on your n8n version, that the delegated role cannot change instance settings, reach other projects or alter SSO and security policies. Permission names and coverage can differ between releases, so check the current documentation and your own tests rather than assuming the matrix you read last year still holds.
Setup sequence for custom roles in n8n
This sequence takes custom roles from a licensing check to a documented role matrix in production. Each step ends with a check, so the team knows a role grants what it should and nothing more before anyone depends on it.
Confirm edition and license entitlement
Before designing anything, confirm that your instance runs an edition that includes custom roles. Compare your plan against the n8n pricing page, then check the license file your organization holds for the Enterprise entitlement. Custom role features depend on Enterprise files covered by a valid n8n Enterprise License, so the owner of the license should sign off on the plan. The step is done when the license owner records the edition, the license holder, and the instance it applies to in the project record.
Inventory teams, workflows and sensitive credentials
Map who works in n8n and what they do. List each team, the projects they need, the credentials those projects use, and the tasks each person performs, such as building workflows, viewing executions, managing credentials, or administering users. Mark which credentials are sensitive, such as production payment or customer-data systems. Involve the team leads and the security owner, since they know which tasks are truly needed. The step is done when every team and task has a row in the inventory, and each sensitive credential has a named owner.
Define role names and purposes
Turn the inventory into a short list of roles, each with a name, a one-sentence purpose, and a named approver. Give each role the narrowest set of tasks that covers a real job, and avoid roles that combine unrelated duties. Separate delegated admin tasks from full instance Admin, so that a team lead can manage a project without access to instance settings. Review the list with the security owner. The step is done when every role has a purpose statement that a reviewer can test against the inventory.
Create roles in a test instance
Build the roles in a non-production n8n instance that matches the production edition, not in production itself. Enter the permissions for workflows, credentials and folders exactly as the design states, and avoid copying permissions from a built-in role without reviewing each item. Record the permission list for each role as you create it, so later reviews have a baseline. The step is done when each role exists in the test instance and its saved permission list matches the design document line by line.
Assign roles to test users
Create one test user for each role and one extra test user who holds no custom role. Assign each test user to the role and project it should have. Keep test accounts separate from real staff accounts, and label them clearly so they are not confused with production users. The step is done when every test account shows exactly one intended role in the user list, and the no-role account shows no project access.
Verify both allowed and denied actions
Log in as each test user and attempt every action in the design, including the actions that must be refused. For example, a viewer account attempting to edit a workflow should fail, and a project admin attempting to change instance settings should be denied. Also confirm that a user without a role cannot see a credential that belongs to another project. Record the result of each attempt, whether it succeeded or failed, as the test evidence. The step is done when every allowed action succeeds, every denied action fails, and any mismatch is logged, fixed in the role, and retested.
Roll out and record the role matrix
Apply the verified roles to production, starting with the smallest group that needs them, and confirm the assignments with the team leads. Save a role matrix that lists each role, its purpose, its permissions, the people or groups assigned, and the approver. Schedule a periodic role review with the security owner, and keep the matrix under change control. The step is done when the production matrix matches the test-verified design, and the review owner has a date recorded for the next check.
Security risks in custom role design
Custom roles reduce access, but each permission can also widen what someone can reach. The six risks below share one root cause: a role is only as tight as the sharing rights, admin scopes and records around it. Check each control before you publish a role to users.
Credential exposure through sharing
Credential sharing rights decide who can use a secret inside a workflow, even when they cannot open it. A user with broad sharing permission on a production database credential can reuse it in their own project. Credentials stored in n8n are protected by the encryption key, which is separate from role permissions, so a correct key does not stop an over-shared credential from being used. Review who holds sharing rights on each credential type and remove sharing from roles that only need to run workflows.
SAML user managementOver-broad project admin
A project admin role controls membership, workflows and credentials inside one project. If the custom role grants more than the team needs, a single project admin can change who else is in the project and what they can edit. Start from the narrowest editor or viewer role and add only the workflow, credential and folder permissions a named task requires. Document the purpose of each permission so a reviewer can challenge it.
Delegated admins granting themselves access
Delegated admin tasks, such as inviting users or managing project membership, are useful only if the delegate cannot raise their own permissions. An admin who can assign roles without limits can promote an account to a role they do not hold. Test this directly: sign in as the delegate, attempt to assign the most privileged role, and confirm the change is refused. Keep instance-level permissions with a small named group.
Owner accounts outside the role model
The instance owner and any local break-glass account sit outside the roles your team designs, so they keep full access even after a custom role review. These accounts are often shared, rarely used and poorly logged. Record who holds the owner credentials, store them in a controlled vault, and confirm that SSO sign-in does not replace the local owner path. Review these accounts on the same schedule as custom roles.
Roles drifting after upgrades
Permissions added or renamed in a new n8n release can change what an existing custom role allows, sometimes without any change in your configuration. Before each upgrade, export or record every custom role and its permission set, then compare the list after the upgrade in a staging instance. Confirm the release notes for permission changes, and treat any new permission as denied until a reviewer approves it.
n8n release notesRole changes missing from audit trails
If role creation, edits and assignments are not logged, you cannot show an auditor who had access to a workflow or credential at a given time. Confirm which role-change events n8n records in your edition and plan, and forward instance logs to a system your security team controls. Include a periodic review that compares current role assignments with approved requests, so changes made outside the process are caught.
Delegating admin tasks without full Admin
User administrators manage the account lifecycle: inviting new people, assigning instance-level roles and deactivating leavers. Their work concerns identity, not the content of workflows or credentials, so the custom role should cover user management and nothing that reads or runs workflows or opens credentials.
- Minimum access: the instance permissions needed to invite users, change their instance role and deactivate accounts, plus read access to the user list.
- Never hold: permission to view, edit or execute workflows, to open credentials, or to manage API keys that belong to other people.
- Reach through membership: confirm whether this role can add people to projects. If it can, a user administrator may gain access to everything inside those projects.
- Offboarding steps: deactivating an account is one step in offboarding. Confirm whether it ends active sessions in your version, and document the remaining steps as a separate task.
Sign in as a user administrator on a non-production instance, invite a test user, then try to open a workflow and a credential. The invite and deactivate steps should succeed, and both content attempts should be refused.
Project owners manage membership and content for one team's project. They need enough reach to add and remove members and to keep their workflows and folders organized, but nothing that touches other projects or the instance as a whole.
- Minimum access: project-scoped permissions to manage project members and to create, edit and run workflows and folders inside their own project.
- Credential use: the ability to use shared credentials in their project. Confirm that they cannot view or export the secret values behind those credentials.
- Never hold: instance-level user management, access to other projects, or the ability to change the role model itself.
- Boundary check: a project owner who can grant instance-level roles could promote themselves beyond the team. Confirm that membership changes are limited to their own project.
Sign in as a project owner, add a test member to their project, then try to add someone to a second project and open a workflow there. The first change should succeed, and the second project should be out of reach.
Security reviewers need to see who holds which role, how membership has changed and what activity occurred. Read-only access to role and audit data lets them check the model without becoming a second set of administrators.
- Minimum access: read access to the user list, role assignments, project membership and the audit output your version exposes.
- Audit coverage: confirm which events your plan records and whether they can be forwarded. Log streaming is listed on the Business and Enterprise plans, so verify it is available to you before relying on it.
- Never hold: create, edit or delete rights on users, roles, projects or credentials, and execution rights on the workflows they review.
- Review output: the reviewer should be able to produce a list of who holds each role and when it last changed. That list is the input to a periodic role review.
Sign in as the reviewer, confirm the role and membership views load, then attempt one role change and one workflow run. Both attempts should fail, and your audit output should show the attempts if your logging captures them.
Platform operators run the infrastructure: hosts, containers, the database, worker pools and version changes. They rarely need to read business content, so their delegated access should focus on infrastructure and stay separate from workflow and credential permissions.
- Minimum access: the access needed to restart services, apply upgrades and change deployment settings, handled mainly through host, container and database access rather than n8n UI roles.
- Upgrade readiness: n8n uses semantic versioning and ships minor releases roughly weekly, according to its release notes. Operators need a test instance and a documented upgrade procedure before each change.
- Encryption key: queue mode requires the encryption key on worker and webhook processors, so limit who can read it and record where it is stored.
- Break-glass access: keep a documented emergency owner account, restrict its use to incidents, and review every login to it.
Run the documented upgrade on the test instance, then confirm that the operator's n8n account still cannot open production workflows or credentials. Confirm the break-glass account works and that its use is logged.
Limits to confirm before you rely on custom roles
Custom roles only reduce risk if they behave the way you expect in your version, your identity setup and your deployment topology. The cards below list the behaviors to test in a non-production instance before you write a role model into policy. Each one maps to a decision you will otherwise discover during an access review or an incident.
Which permissions can be set per role
Confirm the full list of permissions that a custom role can grant, and whether each permission can be scoped to a project or only to the instance. Some permissions may exist for built-in roles but not be selectable in a custom role on your version. Record the answer for every task your delegated admins need, such as managing members or viewing execution logs. Ask n8n to confirm the permission list for the exact release you run, since the set changes between releases.
n8n SAML docsFolder and credential inheritance
Test whether a role limited to workflows also limits the folders that hold those workflows and the credentials they use. A user who can open a workflow may still be able to read or reuse a credential if credential sharing is broader than workflow access. Build a test project with one workflow, one folder and one credential, then sign in as a custom-role user and attempt each action. Write down every action that succeeds but should not.
Interaction with SSO role provisioning
If SSO group mapping assigns roles at sign-in, confirm which role wins when a custom role and a mapped role disagree, and whether a later mapping change overwrites a manually assigned custom role. Check this against the provisioning mode you plan to use. Test a user moving out of a group, because a stale role can survive a group removal if provisioning only runs at login. Document the result before you let identity groups become the source of truth.
Behavior in queue mode
Queue mode separates the main instance, which handles triggers and webhooks, from workers that run executions against PostgreSQL. Confirm that a permission change made on the main instance is enforced for actions handled by workers, such as viewing execution data or retrying a run. Use the queue mode docs to map which processes read the database for authorization, then test a restricted user against each path. Do not assume that a role check applied in the editor also applies to a background retry.
Queue mode docsMulti-main availability
Multi-main runs several main instances for high availability and is restricted to Enterprise self-hosted deployments. If you plan to run it, confirm that role definitions and permission changes replicate to every main instance without a restart, and that a failover does not reset a session to a broader role. Ask n8n how role caching works across mains. Include a failover step in your test plan, because a failover is the moment a stale cache is most likely to appear.
Effect on active sessions
Determine whether a role change applies to a user who is already signed in or only at the next login. A session that outlives a demotion can keep access to a workflow for as long as it stays open. Test this with a browser session and an API key held by the same user, since the two may not behave alike. Record the time from change to enforcement, and pair the result with your offboarding procedure for users who must lose access immediately.
Running role reviews on a schedule
Role reviews are where least privilege either holds or quietly erodes. Start by exporting the current role matrix: every instance role and project role, the users and groups assigned to each, and the credentials and folders each project can reach. Then compare that export with the current team list from your identity provider and project ownership records. Grants that point to people who have left, changed teams or no longer own the project are the first candidates for removal. Be careful with custom roles that were created for a single project, since a grant that looks unused may still support a scheduled workflow or a delegated admin task. Confirm with the project owner before removing it, and record the reason for every change.
Check the role definitions themselves against the release you are running. n8n ships minor releases roughly weekly, as the release notes describe, and permission names, the set of scopes a role can hold, and the behavior of role-related screens and API endpoints can change between versions. Before each review closes, read the release notes for every version published since the last review, test your custom roles on a non-production instance running the target version, and confirm that a restricted user still cannot see or change what they should not. Treat any release that alters a permission as a change to be re-tested, not as a change that can be assumed harmless. Confirm with n8n which scopes are stable for your edition before you rely on them in a review checklist.
The reviewer should be the person who owns the access decision, usually the platform owner for instance roles and each project owner for project roles, with the security or compliance lead signing off on the overall result. Sign-off should be recorded in a dated document or ticket that lists the exported matrix, every change made, the approver for each change and the retest results. Keep the exported matrix from before and after the review so an auditor or internal reviewer can see what changed and why. If your organization has a formal change process, route the role changes through it. Ask your n8n support or implementation partner to confirm how long your evidence needs to be retained and which export format your assessors accept.
Questions buyers ask about custom roles in n8n
Which n8n plan includes custom roles, and what does it cost?
Custom roles are part of the Enterprise plan, which n8n lists at custom pricing for self-hosted or cloud. The n8n pricing page does not publish a figure for Enterprise, so ask n8n for a written quote covering your deployment type, support level and number of environments. Confirm against the pricing page before you commit, because plan contents change. Community edition has no custom roles, and the Business plan's inclusions are listed separately on the same page. Your quote should state the license term, whether it renews annually, and whether support and SLA terms are included. Enterprise features also depend on a valid n8n Enterprise License, so confirm how that license is issued and renewed for your self-hosted instance.
How long does it take to design least-privilege roles in n8n?
Duration depends mainly on how many teams, projects and sensitive credentials you have, and how many people must agree on the permission matrix. A small instance with one or two teams and clear owners moves faster than a shared platform with many business units, regulated data and overlapping ownership. Other drivers include the number of delegated admin tasks you want to split off from full Admin, how much testing you need on a non-production instance, and whether SSO group mapping must be designed at the same time. Ask any provider for a schedule built from a written scope, a named list of roles, and a test plan, rather than a generic estimate.
What must our internal team provide before a custom role project starts?
You need three inputs to design roles well:
- Named role owners for each team or business function, with authority to approve what their people can see and change.
- A test instance that mirrors your production settings, with its own projects, sample workflows and test credentials, so role changes can be verified without touching live automations.
- A user inventory listing each account, its team, its current instance and project roles, and whether it is an SSO or local login.
If you also run SSO group mapping, include the identity provider group names. Missing owners are the most common cause of delays, because permission decisions cannot be finalized without them.
Can our own team build custom roles in n8n without a partner?
Yes, a capable internal team can design and apply custom roles, provided it has an administrator who understands n8n's project model, a non-production instance for testing, and clear decision owners. The work is mostly design and verification: mapping each job function to the permissions it needs, checking that delegated admin tasks do not grant more access than intended, and confirming behavior after each change. A partner adds value when you need an independent permission review, a documented design for auditors, or help covering many teams at once. Whichever route you take, record who approved each role and why.
What should a role review produce?
A role review should produce a current permission matrix, a list of changes with approvals, and evidence that the changes were tested. In practice, the output is:
- A table of each custom instance and project role, its granted permissions for workflows, credentials and folders, and its named owner.
- A list of users by role, with exceptions and the reason each one exists.
- Test results showing what each role can and cannot do on the test instance, including delegated admin tasks.
- A scheduled date for the next review and the person responsible for it.
Keep these records with your change tickets so auditors and security teams can trace who had which access and when.
What does a custom role project cost beyond the license?
Your cost has three parts: the n8n Enterprise license, internal staff time, and any external services. Internal time covers role owners, the administrator who builds and tests roles, and the people who review the results. External services, if used, are billed against a written scope with defined deliverables. One-time costs include the initial permission design, test instance setup and review. Recurring costs include periodic role reviews, updates when teams change, and maintenance when n8n releases new versions that affect permissions. Ask any quote to separate these items and state which deliverables and retests are included.
How do we test that a custom role grants only what it should?
Test each role on a non-production instance using a dedicated test account for every role, not an administrator account. For each role, attempt the actions it should allow and the actions it should block, covering workflows, credentials, folders and delegated admin tasks. Record the expected and actual result for each action. Repeat the tests after any change to the role, after upgrading n8n, and after changing identity provider group mappings. Confirm the exact permission names and behavior in your n8n version, because permissions can change between releases.
How DeployOpen scopes and delivers custom role work
DeployOpen treats custom roles as an access design exercise before any configuration changes. We start from the workflows, credentials and folders each team actually uses, then write the permissions down, build them in a non-production instance, and test them with real user accounts before rollout.
How we scope
- Inventory the projects, teams and admin tasks that need delegation, and list which permissions each one requires
- Agree in writing which instance and project roles are in scope, including any changes to the default role set
- Confirm your n8n Enterprise license, edition and self-hosted deployment details before design starts, since multi-main and other Enterprise features depend on them
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts; ask for the scope document in your quote
How we build
- Map each role to granular permissions for workflows, credentials and folders, then review every permission that allows deletion, export or sharing
- Build the roles in a staging instance that mirrors your SSO and project structure, and keep the role definitions under version control
- Test each role with dedicated test accounts to confirm users can do their assigned tasks and nothing beyond them
- Include delegated admin tasks, such as user invitations or project administration, without granting full instance Admin rights
How we hand over
- Deliver a role matrix that lists each custom role, its permissions and the users or groups it is intended for
- Document the steps for assigning roles, adding new projects and removing access, so your team can run them without DeployOpen
- Provide a review checklist and cadence template for periodic role reviews, including how to spot permissions that have grown over time
- Walk your administrators through the permission model and record the test results as evidence for your access control reviews
How we support
- Retest custom roles after n8n upgrades, since permission sets can change between releases; confirm the upgrade plan with your team
- Offer ongoing support, upgrades and continuous testing as a retainer if you want DeployOpen to review roles on a recurring basis
- Plan role reviews against your identity provider group changes so that access granted through SSO mappings stays aligned with n8n roles
- Ask us to confirm what is covered by a retainer, response expectations and included retesting in the written quote

