Mattermost attribute-based access control (ABAC)

Mattermost ABAC restricts private channels and teams by user attributes instead of manual role changes. This page covers how the policies work, which plans include them, and what to confirm before rollout.

On this page

When Mattermost attribute-based access control replaces manual role changes

Teams that grant and revoke private channel and team access by hand tend to fall behind as projects end, clearances change and people move between departments. Mattermost attribute-based access control (ABAC), available from v10.9 on the Entry and Enterprise Advanced plans, answers that problem by gating private channels and teams according to user attributes instead of individual membership changes. Before you rely on it, confirm which plan your organization holds, because the feature is not listed for every tier, and confirm which user attributes your directory or identity provider can supply to Mattermost.

Mattermost ABAC works through three policy types. System-wide policies set access conditions that apply across the server. Permission policies control specific actions, such as file upload and download, based on the attributes a user holds. Team membership policies determine who may belong to a given team. Together they let you express rules such as limiting a restricted project team to users with a particular department or clearance attribute. Map your existing access rules to these three types on paper first, so you can see which rules are server-wide, which govern actions and which govern membership.

The enforcement behavior differs by channel type. On private channels and teams, the policies are enforced. On public channels and teams, policies are advisory, so they guide behavior without blocking it. Plan for this split: if a sensitive conversation could happen in a public channel, ABAC will not stop it, and you will need another control. Check the exact enforcement and configuration steps in the Mattermost attribute-based access control documentation before you set policy on a production server.

How system-wide, permission and team membership policies differ

System-wide policies answer the visibility question: who can see a private channel or team. They use user attributes to decide whether a person can see a private container at all, so a user who does not match the policy does not find the channel or team through normal browsing or search. Because the policy is set at the server level, it governs private channels and teams across the deployment instead of being configured one channel at a time.

  • Private channels: Visibility of private channels is limited to users whose attributes match the policy.
  • Private teams: The same attribute check applies to private teams, so non-matching users do not see them.
  • Public channels and teams: Policies on public containers are advisory, so they do not hide public content.
  • Attribute inputs: The decision depends on the user attributes your deployment holds, so attribute quality determines policy accuracy.
  • Scope: Because the policy applies across the server, one faulty expression can affect many containers at once.

Before relying on a system-wide policy, confirm with a test account in each attribute group that visibility matches your intent, and confirm the plan that includes it in your environment.

Strict versus advisory enforcement and when each fits

This table compares how ABAC behaves on private channels and teams (strict) against public channels and teams (advisory), including what happens to a user who does not match a policy. Use it to decide which parts of your workspace need hard gating and which can rely on guidance, and to see what you must confirm about existing memberships before you turn policies on.

AspectStrict enforcementAdvisory behavior
ScopePrivate channels and private teamsPublic channels and public teams
Non-matching userBlocked from the restricted channel or team according to the policyPolicy is advisory, so access is not blocked by the attribute check
Membership changesPolicy governs who may join or stay, so confirm how existing members who fail a rule are handledConfirm how existing memberships are treated and whether any warning or notice reaches users
Fits regulated contentYes, for project, legal or regulated material that must stay limited to qualified usersNot sufficient alone for regulated content, because access is not gated
Fits open collaborationUsually too restrictive for broad company channelsSuits general, cross-functional or social channels where guidance is enough
What to verify firstAttribute values are accurate and synced from your directory or SAML assertionsWhich public spaces hold content that would still need strict controls
Plan requirementIncluded with ABAC on the plans listed in the topic guidanceConfirm the same plan coverage applies to advisory policies in your version

Setting up ABAC policies in order

This sequence moves an ABAC rollout from eligibility checks to attribute data, policy design, a pilot and audit review, so each policy type is tested before it gates real users. The result is a set of policies that restrict private channels and teams on attributes your directory or SSO already supplies.

  1. Confirm plan and server version

    Before any configuration, confirm with Mattermost that your plan includes attribute-based access control and that your self-hosted server runs a version that supports it. The topic facts state that ABAC is available from v10.9 on Entry and Enterprise Advanced, so check your subscription tier against that list and confirm the current build in the System Console. Record the plan name and server version in your change ticket. This step is done when a named owner has written confirmation of both.

  2. Populate the attributes policies will test

    Policies can only test attributes that exist and hold values for every user in scope. Identify the attributes your access rules need, such as department, clearance group or project, and confirm they are filled in through SSO claims or AD/LDAP sync. Use the Mattermost user attributes page and the AD/LDAP group synchronization page to decide where each value comes from. Check a sample of accounts in the System Console to confirm the values are present and correct. This step is done when every attribute in the plan returns a value for the pilot accounts.

  3. Define attribute values that map to access

    Write a table that links each attribute value to the channels or teams it should open. For each row, record the attribute name, the exact value as the directory or identity provider sends it, the target channel or team, and the owner who approves changes. Watch for case differences and multi-valued attributes, since a mismatch silently removes access. Ask your identity team to confirm the exact value formats. This step is done when the mapping has been signed off by the data owners of each protected channel or team.

  4. Create system-wide policies first

    Start with system-wide policies because they set the broadest boundary for everything else. Create them in the ABAC section of the System Console, using only the attribute values from your mapping, and apply them to private channels and teams that hold the most sensitive content. Keep the first set small so the effect is easy to trace. Record each policy name, its attribute expression and its scope. This step is done when the policies are saved and a test account outside the rule is denied access to a protected private channel.

  5. Add permission policies on sensitive actions

    Next, add permission policies for actions such as file upload and file download where the content is sensitive, even for members who can already see a channel. Limit each policy to the attribute values that actually need the action, and avoid duplicating the system-wide rules. Test each action with one account that should have it and one that should not. This step is done when a documented test shows upload and download succeed or fail as the mapping requires.

  6. Add team membership policies last

    Team membership policies come after the system-wide and permission policies, so the membership rules sit on top of a settled access model. Configure them for the teams whose membership should follow attributes, and check how existing members are handled before you save. Confirm that people who no longer match the policy are removed or flagged as your design intends. Keep public channels and teams in mind: policies there are advisory, so do not rely on them for enforcement. This step is done when a team membership test produces the outcome recorded in your mapping.

  7. Pilot with a controlled group

    Run the complete policy set with a small pilot group of users whose attributes you know. Include at least one user who should be blocked from each protected resource, so you can see denials as well as grants. Ask pilot users to report any unexpected access loss, and watch support tickets for the same pattern. Confirm the list of pilot accounts and expected outcomes before you widen scope. This step is done when every test case in the pilot matches its expected outcome and the owners have accepted the results.

  8. Review audit results before wider rollout

    Review the audit records and admin actions produced during the pilot, and compare them with the expected outcomes from your mapping. Look for denials that should have been grants, grants that should have been denials, and changes made by people outside the approved owners. Assign a reviewer who did not write the policies, and record the findings with an owner and a fix for each gap. Ask your security or compliance team what evidence they need to keep. This step is done when the review is signed off and the policy set is approved for wider rollout.

How a user attribute decides access to a private channel

The decision starts when a user signs in through an identity provider or directory, which supplies the user attributes Mattermost stores. When the user requests a private channel, team or action such as a file upload, the server evaluates the applicable system-wide, permission and team membership policies. Policies on private resources are strict and block access that fails them, while policies on public channels and teams are advisory. Check that the attribute names and values in your identity provider match the policy expressions exactly, since a mismatch blocks users without an obvious error.

Strict checks block private access, while advisory checks on public resources only warn.

Security and operational risks to plan for

Attribute-based access control is only as strong as the attributes and policies behind it. The risks below connect the data feeding each decision, the people who can change it, and the evidence you need to show it works.

User-editable attribute values

If a user can change the attribute a policy reads, the policy stops being a control. Attributes that come from a profile a user can edit must not decide access to private channels or teams. Before you rely on an attribute, check whether it is admin-managed or user-editable in your configuration, and confirm which sources can write to it. Treat any attribute a user can change as a signal to review, not as proof of identity or clearance.

ABAC docs

Attribute source drift

Attributes are usually copied from an identity provider, directory or SAML assertion into Mattermost. When the source changes a value and the sync does not run, or runs with a different mapping, the two systems disagree about the same person. Document each attribute, its source field, its sync method and its owner. Then test a changed value in the source and confirm it reaches Mattermost in the expected way and time.

Policy changes that lock out members

A strict policy applied to a private channel or team can remove access for members who still need it, including the owners of the work in that space. Before enabling a strict policy, list who matches it today and who would lose access. Apply the change to a test team first, and keep a named person who can review and correct access quickly. Plan the rollback before the change, not after the first complaint.

Admin access to change policies

Anyone who can edit an access policy can also grant themselves or others access to protected spaces. Limit policy editing to a small group of named administrators, and separate it from user management where your organization requires that split. Confirm which System Console roles can reach the ABAC settings, and log each policy change with the approver and the reason. This is where a configuration mistake or an insider change would have the widest effect.

Audit evidence for access reviews

An access review needs to show which policy applied to which space, when it changed and who approved it. Mattermost policy settings alone may not answer that question. Decide in advance where you will export policy definitions, membership changes and attribute values, and how often you will capture them. Ask the platform team to confirm which of these records Mattermost produces in your version and which you must collect yourself.

Upgrade-time verification

Monthly server releases and Extended Support Releases can change how policies, attribute syncs and permissions behave. Access controls that worked on one version can behave differently after an upgrade, and advisory versus strict behavior is the first thing to recheck. Keep a test matrix that covers a private channel, a private team, a public channel and an attribute sync, and run it on staging before each production upgrade.

Where the attributes that drive ABAC come from

ABAC is only as reliable as the attributes it reads, so the first design decision is where each attribute originates. In a self-hosted Mattermost deployment, user attributes typically arrive from two places: SSO assertions, such as SAML attributes passed in at sign-in, or directory sync from AD/LDAP. Some attributes may be admin-managed, set and changed only by Mattermost administrators, while others may be user-editable, which means a user could change a value that a policy depends on. Before you write any policy, map each attribute you intend to use to its source, to who can change it, and to the moment it is refreshed. Confirm these behaviors in your own environment and against the SAML single sign-on guide, because the sync timing and any field limits depend on your identity provider and Mattermost version.

Treat attribute design as a control in its own right. Pick attributes that your identity system already governs, such as department, clearance or project membership, and avoid free-text profile fields that users can edit freely if a policy will rely on them. Check that the attribute is populated for every account that will be affected, including accounts created before the mapping was added, and decide what should happen when an attribute is missing. Use the user attributes documentation to see how Mattermost stores and displays these values, and test a policy with a dedicated test account whose attributes you control before you apply it to production channels or teams.

Limits to confirm in your environment

ABAC behavior depends on details that vary by server version, plan and directory setup. The cards below are the checks to complete on a test server before you write policies for production channels and teams.

Policy expression syntax for your version

Confirm the exact policy expression syntax your server version accepts, including how user attributes are referenced and which operators are available. Test each expression against a sample of real users in a staging environment, because a malformed or loosely matched expression can lock out members or leave a channel open. Record the syntax you validated so upgrades can be checked against the same cases.

First ABAC release
v10.9
ABAC docs

Treatment of existing private channel members

Confirm what happens to current members of a private channel or team when a policy is added. Some members may be removed immediately, others may be flagged, and a policy applied to an existing channel can differ from one applied at creation. Run a test channel with members who fail the policy and record the outcome before you apply anything to a production channel.

Interaction with guest accounts

Confirm how guest accounts are evaluated against policies that depend on attributes they may not carry, such as department or clearance fields. A guest who lacks an attribute may be excluded silently or may keep access depending on the policy. Test a guest in each policy you plan to use, and confirm that external collaborators cannot reach channels they should not see.

Interaction with AD/LDAP group sync

Confirm how attributes populated from AD/LDAP group sync change access when directory data changes. Check the lag between a directory update and the new attribute value being applied, and confirm that removing a user from a group revokes access through the policy as expected. Attributes that are blank or delayed in the directory can grant or deny access by mistake, so test offboarding as well as onboarding.

Performance at your user count

Confirm how policy evaluation behaves at your expected number of users, channels and teams. Load test with representative membership sizes, especially for policies that apply to large teams or that run on every file upload or download. Your results will shape whether you need the high availability and scaling capabilities that Enterprise plans include, so involve your platform team in this check.

Fit between Entry and Enterprise Advanced

Confirm with Mattermost sales whether ABAC on Entry or Enterprise Advanced fits your seat count, required features and support needs. Pricing is quoted from seat licenses on an annual prepaid basis, so compare the total cost of each plan against the features you need, including air-gapped deployment if it applies. Ask for the quote in writing with the plan, seat count and included features listed.

Pricing page

What buyers ask about Mattermost ABAC cost, effort and ownership

Is attribute-based access control included in my Mattermost plan?

Yes, but only on specific plans. Mattermost documents ABAC as available from v10.9 on the Entry and Enterprise Advanced plans, so a Professional or Enterprise subscription does not include it under that documentation. Confirm this against your current contract and the plan table on the pricing page before you scope anything, because plan names and inclusions change. Ask your Mattermost account contact to confirm in writing which plan and version your deployment will run, since ABAC depends on both.

What makes an ABAC rollout take more effort?

Three inputs drive most of the effort. The first is attribute quality: if department, clearance or project values are inconsistent in your directory, you will spend time normalizing them before any policy works. The second is the number of policies, since each system-wide, permission or team membership rule needs testing against real users. The third is directory maturity: if attributes come from a SAML assertion or AD/LDAP sync that is not yet stable, policies will be built on moving targets. Attribute mapping and policy count are the levers you control most directly.

Can our own admins configure Mattermost ABAC without a partner?

Often yes, if your team already administers Mattermost and your directory and identity provider are well run. The work is configuration, not custom code, but it touches access to private channels and files, so mistakes have security consequences. Teams that succeed usually have one owner for attribute definitions, a named reviewer for policies, and a test group of accounts to check each rule before it applies to production users. Most teams that lack one of those roles bring in outside help for the design and first rollout.

How long does an ABAC pilot usually take to scope?

Scoping time depends on what you are protecting and how many attributes you need, so a fixed duration cannot be stated here. A pilot is usually scoped around one or two private channels or teams, a small set of attributes and a short list of policies. The scoping output should include the attributes in use, the channels or teams in the pilot, the expected allow and deny outcomes, and the test accounts. Ask any provider to write the pilot scope, exit criteria and rollback steps before work starts, and to give a quote that follows from that written scope.

What do our identity and admin teams need to provide?

The identity team owns the source of truth for the attributes ABAC will read, whether that is AD/LDAP, SAML assertions or both, so it must confirm attribute names, update frequency and who can change them. The Mattermost admin team needs System Console access for policy configuration and a test environment that mirrors production user provisioning. Security or compliance should approve which data classes each policy protects and sign off on the test results. Agree these responsibilities at the start, because delays usually come from missing approvals, not from configuration.

What does a quote for ABAC work include?

Costs fall into a few components: discovery and attribute design, policy build and testing, the pilot, production rollout, and knowledge transfer. Mattermost licensing is a separate, recurring cost paid to Mattermost, based on the plan and seat count, and it is not part of a services quote. Recurring costs on your side include policy review after each Mattermost upgrade and attribute changes as the organization changes. DeployOpen does not publish a price list. A quote follows from the written scope, so the scope should list attributes, policies, channels and teams in the pilot and production, and the test evidence expected.

Who maintains ABAC policies when Mattermost is upgraded?

Your team keeps ownership of the policies after the work ends, so the handover should cover both configuration and the test cases. Each Mattermost upgrade should include a check that ABAC policies still behave as documented, because release notes can change how rules are evaluated or what the admin console shows. Plan this check into the monthly or Extended Support Release upgrade cycle, and keep a written test set that reruns after each upgrade. Confirm with your provider whether this is covered by a retainer or a one-off support engagement.

How DeployOpen scopes and delivers ABAC on your Mattermost

DeployOpen scopes ABAC work as a fixed-scope engagement, so the attribute model, the policy set and the test plan are agreed in writing before anyone changes the System Console. The first step is a working session with your identity owner, your compliance reviewers and the Mattermost administrators. The output is a short document that lists each user attribute that will drive a decision, where that attribute comes from (directory, SAML assertion or admin-managed value), which private channels and teams each policy governs, and which actions are restricted. Confirm early whether your attributes are admin-managed or user-editable, because a user-editable attribute cannot safely gate access. Ask for the written scope to name the Mattermost version and plan you run, since the ABAC feature depends on both, and confirm the current requirements in the Mattermost documentation before scoping.

Configuration and testing happen inside your own infrastructure, on a non-production Mattermost first. DeployOpen builds test accounts with known attribute values, then checks that each policy grants and denies what the written matrix says. The test plan should cover private channels, team membership rules, permission policies on file upload and download, and the difference between enforced policies on private resources and advisory policies on public channels and teams. Plan a test for every attribute change path, including directory sync and admin edits, because a policy is only as reliable as the attribute feeding it. Results, configuration exports and screenshots are kept as evidence so your reviewers can trace each control to a test that passed on a stated date.

Deliverables typically include the attribute model, the policy configuration record, the test results, and an operating runbook for administrators. Ask for each to be named and dated in the statement of work, and for acceptance criteria to be tied to the test matrix rather than to a general statement that access works. Ongoing work is usually a separate retainer. Policy changes when projects or regulations shift, and upgrades to new Mattermost releases, both need the test matrix rerun, so ask how a retainer would cover regression testing after each upgrade. The quote should separate one-time design and build from recurring support, and it should state who performs each activity in your environment.

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.