What Mattermost user attributes sync from AD, LDAP or SAML
A security or compliance lead often needs profile data such as department, clearance level or business unit to be current in Mattermost without anyone editing profiles by hand. Starting from Mattermost v10.8, an organization can define custom user profile attributes and synchronize them from AD/LDAP or from a SAML identity provider. The directory or identity provider then becomes the source of record for those values, so a transfer or a change in clearance is reflected in Mattermost through the same process that already governs the user's account.
Custom user attributes are organization-defined fields attached to each user profile, in addition to the standard fields such as name and email. Teams need them for more than display. Once a value is stored on the user, it can serve as an input to access decisions, for example in attribute-based access control policies that gate private channels or teams by attribute instead of by manual role changes. That use changes the stakes: a stale or wrongly mapped attribute can grant or block access, so the value's source and freshness matter as much as the field name.
Before you build, confirm three things against the Mattermost user attributes documentation for your target version: which attribute fields your directory or identity provider can supply, which of those you will map, and whether each attribute should be admin-managed or user-editable. Admin-managed is the default from v11, and from v12.0 the attributes are managed under System Attributes > Attribute Management. Plan a test user whose directory values you change on purpose, then confirm the change reaches the Mattermost profile and any policy that depends on it.
Choosing the source of each attribute
Each custom attribute needs one authoritative source before anyone builds a sync rule. The options are the AD or LDAP directory, the SAML assertion from your identity provider, or a value an admin or user sets inside Mattermost, and each option changes who owns the truth and how quickly an edit shows up in a profile.
Directory fields as the owner
Use AD or LDAP fields for attributes that HR or IT already maintains, such as department, cost center or clearance level. The directory usually has the strongest audit trail and the offboarding process you already trust. Confirm which attribute names your directory exposes, how often Mattermost pulls changes from it, and whether a disabled account is also reflected in the attribute values Mattermost holds.
User attributes docsSAML assertions as the owner
Attributes carried in SAML assertions are useful when your identity provider already holds the answer, or when the user is signing in from a partner or federated source that the directory does not cover. Assertions are normally refreshed at sign-in, so a change may not reach Mattermost until the user authenticates again. Confirm which claim names your identity provider sends and whether an attribute can be empty for some users.
SAML SSO docsAdmin-managed values in Mattermost
Attributes that no upstream system holds, such as a project code or a training completion flag, can be set by administrators inside Mattermost. The admin owns the value, so every change depends on someone remembering to make it. Use this source for small, stable sets of values and record who is responsible for each one.
User-editable values
Some attributes, such as a preferred working location or a pronoun, may reasonably come from the user. Allowing user edits means the value can drift from the record in your directory, so decide which attributes users may change and which must stay locked. Do not use a user-editable attribute as the sole input to access decisions without a review step.
Sync timing and latency
Each source reaches Mattermost on its own schedule, and a change in the directory may take longer to appear than a change made by an admin in the console. Measure the delay in your environment with a test account before writing policies that depend on a new value. Record the expected delay so access teams know how long a revoked attribute can still grant access.
Conflicts between sources
When the directory and a SAML assertion disagree, or an admin overrides a synced value, you need a rule for which source wins. Document a single precedence order for each attribute and test a conflicting case before go-live. Without this rule, support teams will not know which system to correct.
Admin-managed versus user-editable attributes
This table compares admin-managed attributes, the default from v11, with optional user-editable attributes, and shows where each one is managed. Read it to decide which attributes can safely feed access rules and which should stay under directory or administrator control.
| Attribute question | Admin-managed attributes | User-editable attributes |
|---|---|---|
| Default behavior | The default from v11, where values come from the directory or SAML assertion and administrators control changes | Optional setting that lets users edit the value in their own profile |
| Who sets the value | The identity provider or an administrator, so the value follows the source system | The user, so the value may be entered, changed or left blank by the person it describes |
| Typical fit | Department, cost center, clearance level, project code, data classification or other values used for access decisions | Display details such as pronouns, job title preference or a location label that does not gate access |
| Risk to access rules | Low when the source system is governed, since changes follow the directory lifecycle | High if a user-entered value can satisfy an attribute-based access policy, so keep such attributes out of gating rules |
| Where it is managed | System Attributes > Attribute Management from v12.0 (earlier versions differ, so confirm the menu path for your release) | Same location from v12.0, with the editing option set per attribute; confirm the exact setting in your version |
| Sync and drift | Next sync or SAML login overwrites manual changes, so test what happens when the directory value is removed | Sync may conflict with a user's own edit, so decide which source wins and document it |
| Older versions | Confirm whether your release supports custom attributes at all, since the feature starts at v10.8 and the admin default starts at v11 | Confirm whether user editing exists in your release before promising it to policy owners |
| Evidence for review | Attribute list, sync source mapping and a test showing a directory change reaches the profile | Written decision on which attributes users may edit and a note that none of them gate private channels |
How to set up attribute sync in Mattermost
This sequence takes you from confirming that your Mattermost version and plan support directory-driven attributes to a tested account whose values follow changes made in your identity source. Each step ends with a check you can record before moving on.
Confirm version and plan support
Before touching configuration, confirm with your Mattermost administrator that the server runs a release that supports custom user profile attributes synced from AD/LDAP or SAML, and that your plan includes the SSO or AD/LDAP sync features you intend to use. Per the researched facts, the feature arrived in v10.8, attributes are admin-managed by default from v11, and from v12.0 they sit under System Attributes > Attribute Management. Check the version in the System Console, and confirm the plan with your Mattermost contact because the pricing page lists no public prices. Done when you have a written note of the server version, plan and the identity source (AD/LDAP or a specific SAML provider) you will use.
Define custom attributes and their source fields
Create the organization-specific profile attributes that Mattermost should hold, such as a department code, business unit or clearance label, and write down the exact source for each one. For AD/LDAP, that is the directory attribute name on the user object. For SAML, it is the attribute name the identity provider sends in the assertion, which often differs from the directory field it is built from. Confirm these names with the directory or identity team against a real test user, not from memory. Done when you have a table of attribute name, source system, source field or assertion name, and value format for every attribute.
Map attributes to directory fields or assertions
In the System Console, add each custom attribute and map it to the directory field or SAML assertion name recorded in the previous step. Keep the mapping in your change record so that the owner of each source field is known. Check that the value type matches the source, because a mismatch between a multi-valued directory attribute and a single-valued Mattermost field is a common cause of blank or wrong values. Done when every mapping is saved and the configuration shows no validation errors.
Set admin-managed or user-editable behavior
For each attribute, decide whether users may edit it themselves or whether only administrators and the synced source may change it. Attributes that drive access decisions, such as those later used for attribute-based access control, should normally be admin-managed so a user cannot alter their own value. Attributes that only personalize a profile may be safe to open for editing. Set the behavior per attribute in the attribute management area for your version, and record the decision with its owner. Done when each attribute has a documented editing rule and a test user confirms the setting in their profile.
Run a test account through a full sync
Choose a dedicated test account in the directory with known values for every mapped attribute. Have it sign in through the configured AD/LDAP sync or SAML flow, or trigger the sync your version uses, and then open the account in the System Console. Confirm each attribute shows the expected value and that any attribute you set as admin-managed cannot be edited by the test user. Record the sign-in time, the values found and any mismatch. Done when the test account shows every expected value and you have a written result to compare against in the next step.
Verify values update after a directory change
Change one mapped value on the test account in the directory, such as the department code, then repeat the sign-in or sync and confirm the new value appears in Mattermost. Change it back and confirm again. This proves the attribute follows the source rather than being set once at account creation. Also check that a removed or empty source value behaves as your design expects. Done when a change in the directory appears in Mattermost on the next sync or sign-in and you have recorded the result for the change record.
Document the mapping and review it on upgrades
Store the final attribute list, mappings, editing rules and test results with the Mattermost configuration record. Note the server version you tested against, because menu paths and attribute screens move between releases, so the exact labels in your System Console may differ from this sequence. Repeat the test account check after each server upgrade and after any change to the directory schema or SAML assertion. Done when the record names an owner for each attribute and a date for the next retest.
How attribute values flow from directory to access control
The flow starts at the directory or SAML identity provider, which holds the authoritative value for each user. Values sync into Mattermost's user attribute store, where an admin can manage them or, if the setting allows, the user can edit them. Attribute-based access control policies then read those stored values to gate channels and teams. The trust boundary sits at the sync point, and the user edit path is the one to check first, because a user-editable value can change who qualifies for access.
Attribute values move from the directory into Mattermost and then gate access.
Security risks when attributes drive access
Once a Mattermost attribute feeds an access decision, a stale, editable or mis-mapped value becomes an access decision too. The cards below cover the four failure modes that matter most, each paired with a control and a version or plan check to confirm before you rely on attributes for access.
Stale attributes after offboarding
A directory attribute that is no longer updated after a role change or departure keeps granting access in Mattermost until something removes it. Sync only runs when the directory is read, so confirm that the account disablement path also clears or stops the attributes your access policies use. Test with a disposable account: change the directory value, run a sync, and check that the attribute and the dependent channel membership both change. Ask your identity team how often the sync runs and whether deprovisioning in the directory is reflected in Mattermost on the same schedule.
User attributes docsUser-editable values in access decisions
Attributes that users can edit themselves should not gate private channels or teams. Mattermost from v11 manages attributes as admin-managed by default with optional user editing, so the setting you choose for each attribute decides who can change it. Review every attribute that appears in an access policy and confirm it is admin-managed. Where a user-editable field is unavoidable, keep it out of access decisions and document the reason in your access model.
Mapping errors that grant wrong attributes
A mis-mapped claim or directory field can hand one group's attribute to another group, for example when a SAML assertion attribute name changes or an LDAP field is reused. Before enabling any attribute as an access input, compare the source field on five or more known users with the value in Mattermost. Keep a written mapping table with the source, the target attribute and the owner, and re-check it after identity provider changes and Mattermost upgrades.
Audit trail for attribute changes
Access decisions made from attributes are only defensible if you can show when a value changed, what it changed from and which sync or admin action caused it. Confirm what your Mattermost audit and log outputs record for attribute changes on the version and plan you run, and whether your SIEM receives them. Ask your compliance team which evidence an auditor will request for access reviews, and test that the export produces it before you go live.
Plan and version requirements by situation
Directory and SSO prerequisites depend on your plan. According to the Mattermost pricing page, SSO (SAML, OIDC, OAuth) and AD/LDAP user sync are included from the Professional plan, so a team on Professional or higher can plan both the SAML or AD/LDAP sign-in path and the attribute sync that rides on it. Plans are sold as prepaid annual subscriptions based on seat licenses, and the pricing page lists no public prices, so the quote follows from your written scope.
- Professional plan: SSO and AD/LDAP user sync are included, which covers the identity inputs for attribute sync.
- Enterprise and Enterprise Advanced: high availability clustering and FIPS 140-3 compliance come with Enterprise, and air-gapped deployment comes with Enterprise Advanced.
- Seat-based pricing: the number of seat licenses drives subscription cost, so confirm whether attribute-only users count toward seats in your quote.
- Plan changes later: moving between plans after go-live can change which features you rely on, so record the plan you bought in the scope document.
- Support for the chosen SSO method: confirm with Mattermost that your identity provider is supported at the plan level you buy.
Before you sign, ask the vendor to confirm in writing which plan includes each feature you need. Confirm this with your Mattermost account team rather than relying on this page alone.
Teams on any server version before v10.8 cannot use the custom user profile attributes covered in this topic. According to the Mattermost user attributes docs, organizations can define custom profile attributes and synchronize them from AD/LDAP or a SAML identity provider starting with v10.8. Attribute sync is therefore a version decision as well as a configuration task, and an older server means the upgrade comes first.
- Pre-v10.8 servers: custom attribute definitions and directory or SAML-driven attribute sync are not available.
- Upgrade before design: plan the server upgrade and its testing before you model attributes, so the design targets the version you will run.
- Interim workarounds: if a team needs attributes sooner, document any manual or script-based stopgap and its ownership, since it will need to be removed after the upgrade.
- Release cadence: Mattermost releases server versions in binary form on the 16th of each month, so the target version may change during planning.
- Support windows: an older release that is out of support leaves you without fixes, so check the support end date for your current version against the server releases page.
Check your current server version and its support end date, then confirm with the Mattermost upgrade plan whether you can reach v10.8 or later on your schedule.
Management of attributes changed between major versions, so the same design can need different steps on v11 and v12.0 or later. According to the Mattermost user attributes docs, from v11 attributes are admin-managed by default with optional user editing. From v12.0 they are managed under System Attributes > Attribute Management in the System Console. Your runbooks and admin training must name the correct path for the version you run.
- v11 defaults: attributes are admin-managed unless you enable user editing, so review each attribute before you open it to users.
- v12.0 location: administrators manage attributes under System Attributes > Attribute Management.
- Documentation drift: a runbook written for v11 may point to the wrong menu after an upgrade to v12.0 or later.
- Release timing: Mattermost v12.0 was released on 2026-10-16 with support ending 2027-01-15, and v11.11 was released on 2026-09-16 with support ending 2026-12-15, according to the server releases page.
- Extended Support Release: v11.7 is an Extended Support Release with support ending 2027-05-15, which may suit a team that prefers fewer upgrades.
Decide which major line you will run, then write the attribute runbook for that version and update it at each upgrade.
Attribute sync and attribute-based access control (ABAC) are linked, but the plan requirement for ABAC is separate and must be confirmed. ABAC uses user attributes to gate private channels and teams, so the attributes you sync from AD/LDAP or SAML become policy inputs. Confirm the plan that includes ABAC before you design policies that depend on it, because the Professional plan entitlement for sync does not by itself establish that ABAC is included.
- Plan check: ask Mattermost which plan includes attribute-based access control and get the answer in writing.
- Attribute quality: ABAC decisions are only as reliable as the source attributes, so validate directory values before enforcing them.
- Strict versus advisory behavior: confirm how each mode behaves in your version before choosing one for regulated channels.
- Version dependency: ABAC depends on attribute support, so it inherits the v10.8 and later requirement covered on the other tabs.
- Testing: verify policy outcomes with test accounts before applying them to production channels.
Before designing ABAC policies, confirm the plan, the version and the strict or advisory mode you need, then record them in your scope.
Limits to confirm before you design around attributes
Custom attributes are only as dependable as the sync behind them. The checks below cover what the sync accepts, how often values change, and where attributes surface, so you can confirm each limit in staging before any access decision depends on it.
Supported attribute types and formats
Confirm which attribute types the AD/LDAP and SAML sync accepts, such as plain text, multi-valued fields, or structured values, and how each maps to a Mattermost custom profile attribute. Ask the vendor whether multi-valued directory fields are flattened, truncated, or rejected. Test a sample of your real attribute formats, including department codes with leading zeros and accented names, on a staging server before you write policy rules against them.
User attributes docsRefresh frequency after directory changes
Ask how often attribute values are re-read from the directory or SAML assertion, and whether the refresh runs on login, on a schedule, or on sync jobs. A role change made in AD may not reach Mattermost until the next refresh. Measure the actual lag in staging by changing a test user's attribute and timing the update, then decide whether that delay is acceptable for the access rules you plan.
Behavior when a directory field is empty
Find out what happens when a source field is blank or missing: whether the stored value is cleared, left unchanged, or replaced with a default. A blank value can silently remove a user from a permitted group if the rule treats empty as a non-match. Test a user with a removed attribute and confirm the result before relying on the attribute for access decisions.
Visibility in the System Console and API
Confirm where admins see synced attributes, whether users can view values that admins manage, and what the API returns for each attribute. Check whether attribute names are case sensitive and whether the API exposes admin-managed and user-editable fields differently. Verify these behaviors against your planned admin roles, since a broad configuration role may see more than intended.
Inclusion in exports and backups
Ask whether custom attribute values appear in server exports, compliance exports, and database backups, and whether restoring a backup restores attribute values or waits for the next sync. Attribute data may be personal information, so its handling must match your retention and privacy policies. Run a test export and a test restore in staging and inspect the output before you commit to a retention position.
Version and plan requirements
Attributes depend on a specific Mattermost release line, and admin management paths changed between versions. Confirm the minimum version for each capability you plan to use, and confirm that your plan includes the SSO and AD/LDAP sync features that feed the attributes. Check the release and support dates on the server releases page before you choose a target version for a long-lived deployment.
- Attribute Management path
- v12.0
Questions teams ask before syncing user attributes
What does a user attribute sync project cost, and which parts are one-time versus recurring?
Cost comes from the work, not from a list price: directory schema review, defining the custom attributes, writing the mapping from directory fields or SAML assertions, testing on a staging server, and handing over the configuration. Most of that is one-time. Recurring costs appear when attribute definitions change, when Mattermost upgrades alter how attributes are handled, and when new access rules depend on attributes. Mattermost sells the SSO and AD/LDAP sync features through its plans, so confirm the plan your organization needs before estimating licensing. Ask any quote to separate the one-time build from ongoing support, upgrades and testing, and to list which directory fields and assertions are in scope.
How long does a pilot for attribute sync usually take?
Duration depends on how clean the directory data is and how many attributes you add. A pilot usually stalls on decisions rather than configuration: which attributes are authoritative, who may edit them, and which values drive access. Expect more time if the directory has inconsistent fields, if several identity providers feed the same server, or if the mapping must be tested across multiple test accounts and upgrade paths. Mattermost supported attribute sync from v10.8, and v12.0 moved attribute management under System Attributes > Attribute Management, so the version you run affects the steps. Ask for a written scope with a named set of attributes and a test plan before agreeing on a timeline.
What must our internal team provide for an attribute sync project?
Three groups of people and one environment are needed. Directory administrators provide AD or LDAP access, field names, and a list of which attributes are reliable. Identity owners, usually in IAM or HR systems, decide which attributes are authoritative and who may edit them. A Mattermost administrator confirms the access rules that will use the attributes. You also need a staging Mattermost server that matches production's version and plan, so mappings can be tested without touching live users. Ask for test accounts with representative attribute values, and confirm change approval steps before any production change.
Can our own team set up attribute sync without a partner?
Yes, if your team already runs Mattermost and manages its directory connection. The System Console handles attribute definitions and mappings, so the work is mostly planning and testing rather than custom code. Teams without recent directory or identity experience often underestimate the design work: deciding attribute ownership, handling values that change, and checking that user-editable attributes cannot weaken access controls. A partner is useful when you need an independent review of that design, a staging build that mirrors production, or documented evidence for a compliance review. Compare both options against the same written list of attributes and test cases.
Why are user attributes different from AD/LDAP group sync?
Group sync decides who belongs to teams and channels, based on directory group membership. User attributes store profile values for each person, such as department, location, or clearance status, and can be synced from AD/LDAP or a SAML identity provider. Attributes do not add anyone to a channel by themselves. Their main job is to act as inputs to attribute-based access control, where policies check values before granting access. Teams often need both: group sync for membership and attributes for the conditions that govern what members can see. Confirm which source is authoritative for each value before enabling either.
Who should be allowed to edit user attributes, administrators or users?
Attributes that drive access decisions should be admin-managed. From Mattermost v11, attributes are admin-managed by default, with optional user editing for attributes that are safe to change. The risk is that a user-editable attribute can change the outcome of an access policy. Decide, for each attribute, whether the directory or an administrator is the source of truth, and keep user editing off for anything used in access rules. Review this decision after each Mattermost upgrade, since the administration path changed in v12.0 under System Attributes > Attribute Management.
What breaks most often when attribute sync is first enabled?
The most common failures are mismatched field names, attributes that arrive empty for some users, and values that do not match the format a policy expects, such as a department spelled two ways. Attributes sourced from SAML can also change only at sign-in, so values may look stale until a user logs in again. Check each attribute with several test accounts, confirm how missing values are handled, and verify that an access policy behaves correctly when an attribute is blank. Keep a record of the mapping so the same checks can be rerun after upgrades.
How DeployOpen scopes attribute sync work
DeployOpen scopes attribute sync as a fixed-scope engagement, with the attribute list, source mapping, test plan and deliverables agreed in writing before any configuration changes are made to your Mattermost server. We plan and implement self-hosted Mattermost inside your own infrastructure, so the directory connection, the attribute definitions and the evidence all stay under your control. The written scope usually starts from a list of the attributes that access decisions depend on, such as department, clearance level, location or employment type, and records for each one whether it comes from AD/LDAP or a SAML assertion, who may edit it, and which downstream rule reads it. Attributes that no policy uses should be left out of the scope, because every extra attribute adds mapping, testing and support work.
The written scope also fixes the test plan. Expect it to cover a sample of real directory accounts, a check that each mapped value lands in the expected Mattermost user profile, a check that a changed value in the directory updates the profile after the next sync, and a check of the admin-managed versus user-editable setting for each attribute. Ask that the test plan name the Mattermost version under test, since attribute management differs between releases. Deliverables should include the attribute register, the mapping configuration, the test results and an operations note for your administrators. Ongoing upgrades, regression testing after each release and continuous testing of attribute-driven access controls can be covered by a retainer, which is priced separately from the initial build.

