System attributes configuration settings
System attributes are the attributes Mattermost stores for users and channels, and the access policies that use them. Review and manage them in the System Console by selecting the Product menu, selecting System Console, and then selecting System Attributes. The section contains the following pages:
- Attribute Management: From Mattermost v12.0, define an attribute once and choose the resources it applies to, such as users and channels. Requires Mattermost Entry, Enterprise, or Enterprise Advanced. See Attribute management and Channel attributes. Before v12.0, user attributes were managed on a User Attributes page. See User attributes (before v12.0).
- Session Attributes: Choose which details of a user's current connection, such as IP address, VPN status, and device posture, permission policies can check. Requires Mattermost Entry or Enterprise Advanced. See Session attributes.
- Attribute-Based Access: Turn attribute-based access control (ABAC) on and configure how it behaves. Requires Mattermost Entry or Enterprise Advanced. The settings on this page are described below.
- Membership Policies: Create system-wide policies that control who can be a member of channels and teams. Shown once attribute-based access control is enabled. See System-wide attribute-based access policies.
- Permission Policies: Create policies that control who can upload and download files. Shown once attribute-based access control is enabled. See Permission policies.
Attribute-Based Access
Access the following configuration settings in the System Console by going to System Attributes > Attribute-Based Access. Some of these settings have no System Console option and can only be changed in the config.json file or with an environment variable. Each one is marked N/A under System Config path.
Enable attribute-based access control
Turns attribute-based access control on or off for the whole server. In the System Console, this setting is labeled Allow attribute based access controls on this server.
Define attributes in Attribute Management before you write policies. See Attribute-based access control. |
|
Show channel access indicators
Controls whether end users can see which attributes a channel's membership policy requires. In the System Console, this setting is labeled Show channel access indicators to end users.
The System Console option is available only when attribute-based access control is enabled. |
|
Trust proxy device identity header
Lets a reverse proxy tell Mattermost which device a request comes from, for use in permission policies that check session attributes.
Only enable this when every connection to Mattermost goes through a proxy you control, and that proxy removes or overwrites the header on incoming requests. Otherwise any client can set its own device identity. See Trust proxy device identity header on the session attributes page. The System Console option appears under Session Attributes on the Attribute-Based Access page, and is available only when attribute-based access control is enabled. Cloud admins can't modify this configuration setting. |
|
Enforce device ID consistency
Ends a session if the device it reports changes partway through. Mattermost compares the
Before you enable this setting, check that the identifiers you rely on stay the same on your users' devices. An identifier that changes for a legitimate reason logs the user out. See Enforce device ID consistency on the session attributes page. The System Console option appears under Session Attributes on the Attribute-Based Access page, and is available only when attribute-based access control is enabled. Cloud admins can't modify this configuration setting. |
|
Enable audit logging for membership policy decisions
Records each change that a membership policy makes to a channel or team in the audit log.
This setting needs an active audit log target: either file audit logging or an advanced audit logging target. See Audit logging. The System Console option is available only when attribute-based access control is enabled and audit logging is active. If you enable the setting in |
|
What gets recorded
Each record covers one user and one channel or team. Mattermost records these events:
| Event | When it's recorded |
|---|---|
channelMembershipAdded | A sync job added a user to a channel because they match its policy. |
channelMembershipRemoved | A sync job removed a user from a channel because they no longer match its policy. |
teamMembershipAdded | A sync job added a user to a team because they match its policy. |
teamMembershipRemoved | A sync job removed a user from a team because they no longer match its policy. |
teamCascadedChannelRemoval | A user removed from a team by its policy was also removed from one of the team's channels. One record is written for each channel. |
Every record includes the reason for the change: matches-policy for an addition, no-longer-matches for a removal, or team-removal-cascade for a channel removal that followed a team removal. The channel records that follow a team removal point back to the team removal record, so you can trace them together. See Access control membership events for every field in the record.
Only membership changes are recorded. Individual permission decisions, such as whether a user may upload or download a file, aren't written to the audit log.
Sync job interval
How often, in seconds, Mattermost runs the scheduled membership sync for channels and teams. Each run applies the membership policies again: it adds and removes members as the policies require, and picks up attribute changes such as those synced from AD/LDAP or SAML. The same interval is used for the channel sync job ( Numerical input in seconds. Default is 3600 seconds (60 minutes). The minimum is 60 seconds; a lower value is rejected. A change takes effect after the server is restarted. This setting has no System Console option. Cloud admins can't modify this configuration setting. |
|
Attribute refresh interval
Controls how quickly attribute changes reach the searches that access control runs. Mattermost keeps a copy of user and channel attribute values for finding the users who match a rule and for reading a channel's attributes, and refreshes that copy at most once in this interval. After a user or channel attribute changes, it can take up to this long before the change shows in:
Membership sync jobs always read the latest values. Numerical input in seconds. Default is 30 seconds. Set it to 0 to refresh the copy before every search. Results are then always current, but busy servers do more database work. This setting has no System Console option. Cloud admins can't modify this configuration setting. |
|