Langflow RBAC: roles, teams and the authorization plugin

Langflow's base open-source build does not enforce role-based access control. Enforcement comes from an authorization plugin, and the edition that includes it must be confirmed in writing before approval.

On this page

Does Langflow RBAC work out of the box?

The base open-source build does not enforce role-based access control on its own. Enforcement requires the authorization plugin, and the published facts do not name the edition or plan that includes it, so confirm that in writing before you mark the control as met. The Langflow authorization documentation says the base build includes the same routes and tables as the RBAC feature, but it always allows every action for authenticated users. A checklist line that reads RBAC enforced is accurate only after the plugin is installed and tested in your environment, and the reviewer will expect evidence of that test.

The routes and database tables exist in every build, so a reviewer who inspects the API will see roles, teams and shares. Those objects alone do not enforce anything. Setting LANGFLOW_AUTHZ_ENABLED=true by itself does not restrict access in the base build, so a configuration review that checks only that flag will pass a deployment where every authenticated user can run every flow. Once the plugin is in place, create a test user with the viewer role, then attempt flow:write and flow:execute actions on a flow owned by someone else, and keep the results as evidence for the approval file.

Before approval, the team has three decisions to make. The first is the role model: the built-in roles are viewer, developer and admin, and custom roles can be created through the roles API, so map each existing group to a role and a permission set built from slugs such as flow:read, flow:write and flow:execute. The second is the plugin source and its support terms, which should be confirmed in writing before procurement. The third is the audit approach: the audit log API for authorization decisions is limited to superusers, so decide who holds that access, how entries reach your SIEM, and who reviews them. Teams, role assignments and shares have their own APIs, so include them in the access review.

Which Langflow RBAC capabilities are built in and which need the plugin

This table compares each Langflow RBAC capability in the base open-source build with what the authorization plugin adds, and flags where the edition or plan still needs confirmation. Read the base build column first: it exposes the roles, teams, shares and APIs, but it always allows every action for authenticated users. The main takeaway is that setting LANGFLOW_AUTHZ_ENABLED=true alone does not restrict access, so plan for the plugin before you rely on any role for control.

CapabilityBase open-source buildAuthorization pluginEdition or plan to confirm
Built-in roles (viewer, developer, admin)Roles are documented and their routes exist, but every action is allowed for authenticated users.Restricts actions by role once the plugin enforces authorization.Confirm the plugin's packaging and which Langflow editions it supports.
Custom roles through the roles APIRoles API routes are present, but custom roles do not restrict access on their own.Creates and enforces custom roles built from permission slugs.Confirm how custom role changes carry over across Langflow upgrades.
TeamsTeams API is present, but team membership restricts nothing without enforcement.Enforces access based on team membership through the team API.Confirm whether team features are included in your edition or plan.
Role assignmentsAssignment API is present, but assignments have no restricting effect in the base build.Enforces the users and teams assigned to each role.Confirm how assignments map to groups from your identity provider.
SharesShare API is present, but shared flows are not restricted by the base build.Enforces access granted through shares on individual flows.Confirm which objects can be shared and who can create shares.
Permission slugs (flow:read, flow:write, flow:execute)Slugs are documented, but checks pass for every authenticated user.Checks each request against flow:read, flow:write and flow:execute.Confirm the full slug list for your Langflow release in the authorization docs.
Authorization decision enforcementNot enforced. Setting LANGFLOW_AUTHZ_ENABLED=true alone does not restrict access, per the authorization page.Enforces each authorization decision against roles, teams and shares.Confirm the plugin is loaded and tested in your environment before go-live.
Audit log API for authorization decisionsDecisions are always allowed, so confirm what the base build records before relying on it.Documented as superuser-only on the authorization page.Confirm what the log records and who can read it under your admin model.
Per-user isolation within a processNot enforced. The security page says users are not isolated within a single process.Not described as a plugin feature in the authorization pages.Confirm your tenancy model with the plugin provider before sharing one process across teams.

How the Langflow authorization layer decides access

The base build does not restrict access by role. It includes the same routes and database tables as the authorization plugin path, but it allows every action for any authenticated user. Setting LANGFLOW_AUTHZ_ENABLED to true on its own does not restrict access, so an organization that expects the flag to do that will find that every signed-in user can still open, edit and run every flow. Before you plan a rollout, read the Langflow authorization documentation for the plugin path, then test a staging instance with two non-admin accounts to see what each one can reach. Use that test result as the evidence that your access model works.

In the plugin model, each access decision combines four inputs. The first is the user's role, either one of the documented built-in roles (viewer, developer or admin) or a custom role created through the roles API. The second is the permission slug attached to each flow action, such as flow:read for viewing, flow:write for editing and flow:execute for running. The third and fourth are team membership and shares, both managed through their own APIs, which let you grant a group of users access to a set of flows. Before you build custom roles, confirm in the authorization documentation how a share or team grant combines with a role, because that combination determines whether a developer can run a flow shared with them. Map each team to a role and a set of flows on paper first.

Authorization decisions can be reviewed through an audit log API, but that API is superuser-only. Flow owners, team leads and auditors who are not superusers cannot read it directly, so the record of who was allowed or denied an action sits with the people who hold superuser access. Decide that group before go-live and confirm how it is protected. The official packages and Docker images require a superuser password (LANGFLOW_SUPERUSER_PASSWORD), so that credential and its rotation become part of your access review. If your compliance team needs these records outside Langflow, confirm an export path with your own logging team before you depend on one.

Where an authorized request is allowed or denied

The flow starts with an authenticated request, such as a call to a flow endpoint carrying a valid token. Identity validation confirms who the caller is. The authorization check then applies the user's role and the permission slug the route needs, flow:read, flow:write or flow:execute, with teams and shares feeding the decision. In the base build, that check always allows the request, so setting LANGFLOW_AUTHZ_ENABLED=true alone changes nothing. With the authorization plugin, the decision is enforced and logged, and superusers can read those records through the audit log API. Test by sending the same request as each role and confirming the outcome.

Authorization check outcome in the base build and with the plugin.

Decisions to make before turning on Langflow RBAC

Langflow RBAC is as much a set of operating decisions as a set of roles. The six choices below each set a control that the base build does not enforce on its own, and the answers also decide who can read audit records and who maintains the plugin after launch.

Identity provider and team mapping

Langflow accepts JWTs from any OIDC provider, while provider-specific SSO such as SAML or LDAP comes through a separate plugin. Choose the identity provider that is the source of truth for staff, then decide how its groups map to Langflow teams. Confirm that login tokens carry the group information you plan to map before writing role assignments, or new users will land in empty teams. Test with one account from each group.

External authentication docs

Built-in or custom roles

The documented built-in roles are viewer, developer and admin. Custom roles can be created through the roles API using permission slugs such as flow:read, flow:write and flow:execute. Decide whether three roles match how your teams actually work. Write a role-to-permission matrix before anyone builds a custom role, so reviewers can compare it with what the roles API returns.

Authorization docs

Sharing flows across teams

Teams, role assignments and shares each have their own API, so sharing is a decision separate from team membership. Decide whether a flow is shared with a whole team or with named users, and who may share a flow they did not build. Settle who can re-share a flow before the first team starts using the platform. Confirm the default visibility for new flows in a test instance, because it determines what a new team sees on day one.

Execute versus write for sensitive flows

The permissions flow:write and flow:execute are separate. A flow that calls internal systems or handles customer data may need fewer people able to run it than able to edit it. An editor who can change a flow's logic should not automatically be able to run it against production data. Map each sensitive flow to an execute group before launch, then confirm with a test whether execute permission also applies to the API calls your applications make, not only to runs in the interface.

Ownership of the authorization plugin

The base build keeps the same routes and tables but always allows every action for authenticated users. Setting LANGFLOW_AUTHZ_ENABLED=true alone restricts nothing, so the plugin becomes the enforcement point and a system you own. Name an owner for plugin upgrades who tests it against each Langflow release, since releases arrive roughly weekly. Confirm who supplies the plugin, under what license, and who fixes it when Langflow changes.

Where audit records are exported

The audit log API for authorization decisions is superuser-only, so access to decision records is limited by design. Decide where those records should live: kept in Langflow, exported to your log platform, or both. Confirm retention periods and reader access with your security team before go-live. Run a test export to check that the records include the user, the flow and the decision that your investigators will need.

How the RBAC answer changes by team structure and environment

A single team running one Langflow instance has the smallest authorization problem, but the base build still does not restrict anyone. Every authenticated user can perform every action, so the first question is whether the team needs role separation at all. If it does, the authorization plugin becomes the enforcement point, and the decision should be made before people who should not see each other's flows are invited.

  • Plugin decision: Setting LANGFLOW_AUTHZ_ENABLED=true alone does not restrict access in the base build, so install the plugin if roles must be enforced.
  • Role model: The built-in viewer, developer and admin roles may be enough for a small group. Custom roles can be created through the roles API if you need narrower permissions, such as flow:execute without flow:write.
  • Audit needs: The audit log for authorization decisions is superuser-only, so name one administrator who can read it.
  • Identity: Sign-in through external OIDC JWTs is separate from role enforcement, so decide both before go-live.

Confirm with IBM or the Langflow project which plugin release matches your Langflow line, what it costs to license or support, and whether it covers the roles you have listed.

What Langflow does not cover for access control

The authorization page and security guidance leave several access control jobs with your team. Each gap below names what the base build does not do, how organizations usually cover it, and what to confirm before you rely on Langflow RBAC for a production decision.

No enforcement in the base build

The base build keeps the same routes and tables as the RBAC design, but it always allows every action for authenticated users. Setting LANGFLOW_AUTHZ_ENABLED=true by itself does not restrict access, so a team that only flips that flag still runs an open workspace. Organizations usually install the authorization plugin, then prove enforcement with tests that attempt denied actions as each role. Check that the plugin version you run matches the Langflow line you deploy.

Authorization docs

No isolation within one process

The Langflow security page states that Langflow does not enforce isolation between users within a single process. Role checks govern which actions a user may take, but they do not separate one user's flows, data and runtime state from another user sharing the same process. Organizations usually cover this with a separate instance per tenant, each with its own database and credentials. Confirm the process model with the vendor before unrelated business units share one instance.

Security page

Audit log access limited to superusers

The audit log API for authorization decisions is superuser-only, so the people who review access decisions must hold superuser rights. That widens the set of accounts with full administrative power and places the audit trail under the control of the most privileged account. Organizations usually export audit records on a schedule to their own log store, with retention and read access set by the security team. Confirm how records are exported and whether the export covers every decision type you need to keep.

Edition that includes the plugin

Langflow describes RBAC enforcement as a plugin, and you should confirm the edition or package that ships it before you plan around it. Your procurement and architecture decisions depend on which build includes the plugin, what license terms apply to it, and whether your support agreement covers it. Organizations usually get this answer in writing from the vendor and keep it in the design record alongside the deployment specification. Ask IBM and the Langflow maintainers the same question so the answers can be compared.

IBM Langflow page

Designing and testing custom roles

Langflow documents three built-in roles, viewer, developer and admin, and allows custom roles through the roles API. Permission slugs such as flow:read, flow:write and flow:execute let you separate building flows from running them, but each custom role is a policy decision your team owns. Organizations usually keep a written role matrix that maps each role to allowed and denied actions, then test every denied action as that role and record the result. Repeat those tests after each plugin or Langflow upgrade.

External identity provider

Langflow supports external OIDC authentication with JWTs from any OIDC provider, while provider-specific SSO for OIDC, SAML and LDAP, along with RBAC enforcement, are described as plugins. You still need an identity provider you operate to map users and group membership into Langflow roles and teams. Organizations usually map group claims to teams and test that removing a user from a group also removes their access. Confirm which claims the plugin reads before you design group names.

External authentication docs

Order of work to put Langflow RBAC in production

Langflow RBAC is enforced only after the authorization plugin is installed and verified in your own environment. This sequence moves from written scope to a tested instance, so roles, teams and audit evidence are settled before users depend on them. Each step closes with a check that the owners can sign off before the next step starts.

  1. Confirm the plugin source and edition in writing

    Before any design work, get the source, version and edition of the RBAC plugin confirmed in writing by whoever supplies it. The base Langflow build includes the same routes and tables but allows every action for authenticated users, so the plugin is a prerequisite for any access control. Ask for its license terms, the Langflow version line it supports, and whether it covers the audit features you need. Done when these answers sit in the project file and the security and procurement owners have signed off.

  2. Fix the identity and team design

    Decide how people authenticate and how they group before writing any role. Map each identity provider group to a planned Langflow team, and confirm whether membership is synced automatically or managed through the teams API. Decide who owns each team, who may create or share flows, and which accounts stay local for break-glass use. Confirm the sign-in path, since Langflow's built-in OIDC support accepts JWTs from any OIDC provider while provider-specific SSO comes from plugins. Done when the identity owner and the Langflow administrator have signed the map, every population has a named team owner, and joiners, movers and leavers have a documented path.

  3. Define roles and permission slugs in a matrix

    Write the access matrix before touching the roles API. Start from the documented built-in roles of viewer, developer and admin, then decide whether any custom role is needed. For each role, list the permission slugs it holds, such as flow:read, flow:write and flow:execute, and the teams and shares it can manage. Have a second reviewer test each row against a concrete business task, and keep the matrix under version control. Done when every role has a written justification, no role grants more than its job requires, and the matrix matches the configured roles.

  4. Deploy with authentication and superuser password set

    Deploy a staging instance with authentication enabled and LANGFLOW_SUPERUSER_PASSWORD supplied from your secrets store, because official packages and Docker images require that password. Setting LANGFLOW_AUTHZ_ENABLED=true alone does not restrict access in the base build, so the plugin must be installed and loaded before you rely on any role. Because auto-login is off by default, sign in with each test account to confirm it authenticates. Done when anonymous requests are refused, no credential appears in configuration files or the repository, and your team can show which build and plugin version is running.

  5. Test denied actions as well as allowed ones

    Run a scripted test pass for each role that covers what the role should do and what it should not. For every permission slug, check an allowed action and at least one denied action, including a shared flow the user should not edit, a team the user does not belong to, and a flow execution attempt by a viewer. Record the expected result before running each case so that a failure is clear. Done when every denied case returns a refusal, every allowed case succeeds, and any mismatch has been fixed and retested against the matrix.

  6. Confirm audit records can be retrieved and retained

    Confirm that authorization decisions can be retrieved, read and kept for the period your policy sets. The audit log API for authorization decisions is superuser-only, so decide who holds superuser access, how that use is logged, and who may query records during an investigation. Check which decisions the log records and whether the denied cases from the test run appear. Confirm storage and retention controls for the database and log pipeline you run. Done when a named owner can retrieve the records, the retention period is written in your policy, and security or compliance has reviewed a sample before go-live.

What a security reviewer asks to see for Langflow access control

This table maps what a security reviewer typically requests for Langflow access control to where the evidence lives in the platform and who produces it. Read each row as a request to answer with an export, a configuration record or a test result. The main takeaway is that denied-action test results and the pinned plugin version carry the weight of the review, because the base build allows every action for authenticated users.

Reviewer requestEvidence in the platformWho produces it
Which roles exist and what each may doBuilt-in viewer, developer and admin roles, custom roles from the roles API, permission slugs such as flow:read, flow:write and flow:executeOrganization exports roles; DeployOpen reviews and documents the matrix
Who can reach which flows, through teams and sharesTeams, role assignments and shares managed through their own APIs, exported with owners and membershipOrganization exports the records; DeployOpen checks for shares without a current owner
How users sign in and who holds superuser rightsLANGFLOW_SUPERUSER_PASSWORD set, auto-login disabled, external OIDC JWT settings and identity provider configurationOrganization supplies identity provider settings; DeployOpen documents the configuration
Proof that a denied action is refusedTest records per role showing refused flow:read, flow:write and flow:execute calls after the plugin is enabledDeployOpen runs the denied-action tests; organization retains the records
Audit log of authorization decisions and who can read itAuthorization decision log API, readable by superusers only, plus the current list of superuser accountsOrganization keeps the superuser list; confirm the recorded log fields with the plugin vendor
Plugin version, source and licensePinned plugin version in the deployment manifest, source repository and license confirmed with the vendorPlugin vendor supplies source and version; organization pins the version
Langflow core version and upgrade recordPinned image tag checked against the GitHub releases page, with release notes reviewed for access control changesOrganization pins the tag; DeployOpen reviews each upgrade
Statement on isolation between usersLangflow security guidance says it does not enforce isolation between users within a single processOrganization documents its tenancy layout; DeployOpen tests cross-user access

Questions buyers ask about Langflow RBAC before approval

Is setting LANGFLOW_AUTHZ_ENABLED=true enough to restrict access in Langflow?

No. In the base build, setting LANGFLOW_AUTHZ_ENABLED=true alone does not restrict access. The routes and tables for authorization exist, but the base build allows every action for any authenticated user. Enforcement comes from the authorization plugin, so the flag and the plugin must be deployed together. Before approval, ask for a staging test where a viewer account is denied a write or execute action, along with the recorded result. Confirm which plugin version works with your chosen Langflow release, since releases arrive roughly weekly. Sign-in is a separate control, so also confirm how users authenticate through external OIDC. The Langflow authorization documentation sets out the required configuration and should be the first read for your engineers.

Does IBM Elite Support or Langflow Cloud include the RBAC plugin?

The sources reviewed do not confirm that either one includes the RBAC plugin. An IBM Community post says the former LUNA support offerings, including Langflow, are now called IBM Elite Support. The IBM product page lists IBM Langflow Cloud as a deployment target, but it gives no tier or price. Neither source states whether authorization plugins are covered by a support contract or a Cloud subscription. Ask IBM in writing which components, plugins and versions the support covers, whether RBAC is available in Cloud, and who applies fixes to the plugin. Put the answer in the quote itself, because support scope decides who owns testing, upgrades and fixes when a Langflow release changes authorization code. The IBM Elite Support page for Langflow is the place to start.

What drives the effort of designing and testing Langflow roles?

Effort depends on how many roles, teams and shared resources the design must cover, and on how many of those already exist in your identity provider. The built-in roles are viewer, developer and admin. The work grows with each custom role created through the roles API and each permission assigned to it, such as flow:read, flow:write and flow:execute. Teams, role assignments and shares each have their own APIs, so the design should cover those paths as well as the user interface. Testing needs positive and negative cases for each role and permission pair, plus checks on shared flows that cross team boundaries. One-time work covers design, plugin setup and the first test pass. Recurring work covers new teams, new roles and every Langflow upgrade. In a quote, ask for the role matrix, the test catalog and a named owner for each.

Can our own engineers build Langflow RBAC without a partner?

Yes, if your team can run Langflow on Docker or Kubernetes, operate an OIDC provider and work through the authorization documentation closely. The hard part is not the flag. Your team must install and verify the plugin, design the role matrix, script the team and role assignment calls, and prove that denials work. Common gaps include:

  • Testing only through the user interface and skipping share and API key paths.
  • Leaving audit log review without an owner, since the authorization audit log API is limited to superusers.
  • Treating the launch as the finish line instead of planning for upgrades and access reviews.

Ask whether the team can own plugin updates, Langflow upgrades and quarterly access reviews after launch. A partner is most useful when the design needs independent test evidence for a security review.

What does an RBAC rollout need from identity and security teams?

Identity teams own the sign-in and group data that RBAC depends on. They confirm the external OIDC configuration, which token claims carry group membership, and how group changes reach Langflow teams and role assignments, including removals when staff leave. Security teams review the role matrix, approve who may create custom roles, and decide who can read the authorization audit log, which the API limits to superusers. They also own the handling of LANGFLOW_SUPERUSER_PASSWORD and any service credentials that automation uses. Agree on a review cadence before launch, and assign one owner for each control. The external authentication documentation describes the sign-in side and is the right starting point for the identity team.

Does RBAC make a shared Langflow instance safe for several tenants?

No, not on its own. The Langflow security guidance says the project does not enforce isolation between users within a single process. RBAC controls which actions an authenticated user may take, such as reading, writing or executing a flow. That reduces misuse inside a shared instance, but it does not by itself establish separation between tenants. Before approval, decide whether each tenant gets its own instance, or whether the organization accepts the shared-process risk in writing. If you share an instance, ask for test results covering flows, shares, API keys and teams across tenant boundaries. Your data classification and regulatory scope should drive that decision, and your compliance team should review the outcome.

How DeployOpen scopes Langflow access control in your infrastructure

DeployOpen plans and implements self-hosted Langflow inside your own cloud accounts, data centers or air-gapped networks. For RBAC, we treat the base build as allowing every action for authenticated users, so roles, teams and sharing are scoped and enforced only after the authorization plugin is in place and tested. Engagements are fixed-scope, with the written scope agreed before work starts.

How we scope

  • The written scope names which roles, teams and permissions, such as flow:read and flow:execute, apply to each group.
  • It confirms whether the authorization plugin is in scope, because the base build does not enforce RBAC.
  • Fixed-scope engagements agree deliverables and timelines in writing before work starts, and ongoing support is available as a retainer.

How we build

  • Enable the authorization plugin and confirm access changes, since setting LANGFLOW_AUTHZ_ENABLED=true alone does not restrict access.
  • Map teams and shares to the built-in viewer, developer and admin roles, adding custom roles through the roles API.
  • Script role assignments, teams and shares through their APIs so access changes are repeatable and reviewable.

How we hand over

  • Documentation covers the role model, permission slugs, team and share APIs, and the superuser-only audit log API.
  • Where security testing is in scope, role boundaries are tested and retested after fixes, with findings written up.
  • Agree in writing who may read the superuser-only audit log and who owns role changes after handover.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, so role behavior can be rechecked as Langflow releases arrive.
  • Upgrade reviews can check that the authorization plugin, roles and audit logging still behave as documented after each change.
  • Changes to the plugin, role model or deployment are scoped as new written work, so the record stays current.

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.