Restricting file sharing and downloads in Mattermost

Mattermost files can carry sensitive data out of your organization. This page explains which upload, download and mobile sharing controls apply, how to choose among them, and what to confirm in your own deployment before you change anything.

On this page

How file sharing in Mattermost becomes an exfiltration path

Picture a self-hosted Mattermost where any member can upload, download or forward files, including to personal phones and laptops. This page covers how to limit file movement with server settings, client settings and attribute-based policies. Each of those layers matters because a file can leave your environment at several points, and a restriction at one point does nothing about the others.

Files pass through the Mattermost server, where uploads are stored and served to clients. They then pass through the web, desktop and mobile apps, which decide whether a user can save, open or share a file. They also pass through anything that touches the file stream: integrations, bots, plugins and API tokens that can read or post files without a person clicking anything. A control on one path, such as disabling downloads in the web client, leaves the others open, so map each path before choosing controls.

Treat the setting names and plan requirements in this topic as items to verify, not facts to copy. Confirm the exact keys and menu labels against the server version your clients run, because file and download options have changed across monthly releases and ESRs. Check the server release notes for your version, and check the Mattermost pricing page only for questions about which plan includes a given capability. Record each control you rely on, the version it was verified on and the test that proved it works, so an upgrade does not quietly reopen a path.

Where files leave a Mattermost deployment

A file can leave a Mattermost deployment through more than one route, and each route has its own control point. Treat the decision for each path separately, because a single setting for file sharing rarely governs all of them. The cards below list the paths and what you must decide for each before go-live.

User uploads in channels and DMs

Members can post files into public channels, private channels and direct messages. Decide whether every user may upload, whether uploads are limited to some teams or roles, or whether uploads are blocked outright. Check the file sharing setting and the file size and type limits together, since each controls a different part of the risk. Confirm the behavior in a test account for each channel type you run.

Web and desktop downloads

Browser and desktop clients can download any file a user can view. Blocking uploads does not stop downloads of files already stored on the server, and a restricted user may still reach files shared earlier. Decide whether downloads are allowed for all users, for some groups, or not at all, and test this against files posted before the change.

Mobile downloads to device storage

Mobile apps can save received files to the device, where they leave the server's audit scope and fall under device management. Decide whether mobile downloads are permitted, and whether managed devices are the only ones allowed to fetch files. Confirm with your mobile device management tool that it can enforce the choice you make, because the server setting alone does not reach copies already on a phone.

Mobile sharing to other apps

The operating system share sheet can send a file from the Mattermost app into email, cloud drives or other apps. This path bypasses server-side download controls once the file is on the device. Decide whether to permit it, and pair the decision with app configuration or a managed app policy where your device platform supports one. Check the mobile app documentation for what the server can and cannot prevent.

File search and previews

Search results, file previews and thumbnails can expose file contents or names to users who did not download the file. Decide who can search across files and whether previews are shown to every member of a channel. Test with a user outside the channel to confirm that search and preview respect the same membership rules as downloads.

Files from integrations, bots, plugins and the API

Webhooks, bot accounts, plugins and REST API clients can post and retrieve files without going through the normal user upload screen. Decide which bot and integration accounts may upload or download, and review tokens that have file permissions. Inventory these accounts first, because an integration can move files even when every human user is restricted.

Which file control fits which risk

This table compares four ways to limit file movement in Mattermost, from a server-wide attachment switch to attribute-based policies. Read each row for what the control stops, what legitimate users lose, and the situation it suits. The main takeaway is that the broader the control, the more collaboration it removes, so most organizations match the control to the specific channel of exfiltration they are worried about.

ControlWhat it stopsWhat it breaks for usersWhen it fits
Disabling file attachments server-wideAny file upload or download through Mattermost on every client, including the web app, desktop and mobile appsUsers cannot share documents, images or screenshots in any channel or direct message, and workflows that depend on attachments stopHighest-sensitivity environments where chat should carry text only and files move through an approved system
Restricting mobile downloadsSaving or opening files from Mattermost on mobile devices, which reduces copies left on unmanaged phonesStaff on mobile cannot view attachments they need in the field, and desktop users keep full accessMobile devices are unmanaged or shared, and desktop access is acceptable for the same people
Restricting mobile uploads or sharingSending files from mobile devices into Mattermost, including camera roll and document picker uploadsUsers cannot send photos or documents from their phones, which affects incident response and field reportingMobile is a source of data entering the workspace, or you need to limit what leaves managed endpoints by phone
Attribute-based policies on upload and downloadAccess to files based on user, team, channel or device attributes, so only qualifying users can upload or downloadRequires configuration effort, and some users may be blocked when attributes are incomplete or wrongDifferent groups need different file rights, such as restricting a regulated project channel only. Confirm the required plan level on the pricing page before planning, and do not name setting keys unless confirmed against the current documentation for the version in use

How an upload or download request passes the file controls

The request starts in the user's browser, desktop or mobile app, and crosses the reverse proxy before reaching the Mattermost application server. The application server evaluates the file policy and either allows the transfer or denies it, and only allowed uploads and downloads touch file storage on Amazon S3, an S3-compatible service or a NAS shared across nodes. Check each trust boundary, confirm which controls run on the server and which run only in the client app, and test both paths.

Server-side file policy sits between the proxy and storage, with client-side controls on the device.

Setting up file restrictions in a safe order

This sequence moves file sharing and download restrictions from an inventory of sensitive channels to a documented, tested rollout, so each user group gets the controls its work requires and nothing more.

  1. Inventory channels, teams and groups handling sensitive data

    Ask the channel owners, team admins and business leads to list the channels, teams and user groups that exchange regulated, client or confidential files, and note which integrations post into them. Compare that list with the System Console team and channel lists and the user group membership, so every group that touches sensitive data has a named owner. You are done when each sensitive channel or team has an owner, a group and a recorded reason for being on the list.

  2. Decide the file policy for each group

    For each group from the inventory, record whether it may upload files, download files, share files on mobile, or post files through integrations. Mark which groups need a full block, which need restricted access, and which need no change. Have the data owner and the security team sign off the table before anyone edits settings. You are done when every group has one written policy line and the approvers have initialed it.

  3. Confirm settings for your running server version

    Open the System Console on the staging copy of your server and locate each file-related setting and attribute-based policy you plan to use. Compare the labels and defaults with the documentation for that exact version, because monthly releases and Extended Support Releases can differ. Save a screenshot or export of the current configuration as your baseline. You are done when every setting in your policy table maps to a named control on the running version and the baseline is saved.

  4. Apply the change in staging

    Apply the settings from the policy table to a staging server that mirrors production authentication, teams, channels and user groups. Record who made each change and when, using the server audit trail or your change log. Keep the production configuration untouched until the tests in the next steps pass. You are done when staging matches the policy table line by line and the change record lists every edit.

  5. Test uploads, downloads and mobile sharing per group

    Create one test account per group and run the same scripted actions for each: upload a file to a sensitive channel, download a file from it, share a file from the mobile app, and post a file through a test integration or bot. Record the expected result beside each action before testing, then note what actually happened. You are done when every group's results match its policy line and any mismatch has a logged fix and a retest.

  6. Check server logs for denied requests

    After the test run, review the server logs and audit records for the denied upload, download and share attempts. Confirm each denial corresponds to a test you ran and that allowed actions were not blocked. Also check that the logs show the user, channel and action so an investigator could follow a denied event later. Confirm with the operations team which log sink receives these entries in production. You are done when every test denial appears in the logs with enough detail to trace it and no unexpected denials remain.

  7. Roll out to production and document exceptions

    Apply the approved settings to production during a window agreed with the channel owners, then repeat a short subset of the group tests against production using test accounts. Write each exception, such as a group that keeps download access for a documented business need, with its owner, approver and review date. Store the policy table, test results and exception register where the compliance team can find them. You are done when production tests pass and the exception register is complete and approved.

Restrictions by client: web, desktop and mobile

The web app and the desktop app both render the Mattermost web interface, so most file behavior is decided by the server. Settings that turn off attachments or downloads in the System Console apply to these clients when the server enforces them, and this is the strongest place to set policy. Client-dependent behavior is narrower: the desktop app keeps its own local handling of downloaded files and previews, and browsers decide whether a rendered image can be saved, printed or copied.

  • Server-enforced switches: Set upload and download policy in the System Console so the web and desktop apps receive no file action, then confirm the result from a non-admin account in each user group.
  • Attribute-based rules: Where your plan supports attribute-based access policies, scope upload and download rules to user attributes or channels, and test each group separately.
  • Desktop app versions: Track desktop builds across your fleet, because older builds may handle cached files or previews differently. Check the release notes for your server version before you rely on a behavior.
  • Browser controls: Use managed browser policies to block saving or printing where your standard requires it. The server cannot stop a user from capturing a file that has already been rendered on screen.
  • Network path: If your design limits file access to managed networks, apply the same rule to the proxy paths the web and desktop apps call, and confirm that no alternate path exists.

Test each setting with a file that policy should block, from a standard account in every group, and record which client and version you used.

Security risks that remain after you block files

Turning off uploads or downloads closes one path, but content still leaves Mattermost through other routes. The cards below cover the paths that remain open and the checks that show whether your file restrictions hold up in practice.

Content leaving through screenshots and links

Users can photograph screens, copy and paste message text, or post links to external storage such as personal cloud drives. None of these pass through Mattermost's file controls, so a blocked file type can still leave as a link or a pasted table. Confirm your data loss prevention tooling covers endpoints and browsers, and decide whether your policy addresses pasted text and external links, not only attachments.

Bots and integrations still posting files

Webhooks, slash commands, bot accounts and plugins can post content through the API, and a file restriction set for users may not apply to them in the same way. Inventory every bot token and webhook, record who owns each one, and test whether it can upload or attach files under your configured policy. Review them on a fixed schedule, not only when they are first installed.

Previously uploaded files and retention

Files uploaded before a restriction went live remain on the server and stay downloadable by anyone who can already reach the channel. Retention settings decide how long these files and their previews persist. Confirm how your retention policy deletes file records and stored objects, and whether backups keep copies after deletion. Test a deletion end to end before relying on it.

Storage access outside Mattermost

Files live in the storage backend you configure, such as Amazon S3, an S3-compatible service or a NAS mounted on each node. Anyone with direct access to that bucket or share can read files without going through Mattermost's permission model. Restrict storage credentials to the Mattermost service, limit administrative access to the bucket or share, and confirm that access logs are enabled and reviewed.

High availability storage docs

Shadow tools reaching the database or file store

Backup agents, sync scripts, analytics connectors or ad hoc admin tools that connect directly to PostgreSQL or the file store can read message and file content without any Mattermost restriction applying. Inventory every account and network path that reaches the database or storage, restrict them by role and source address, and monitor for connections that do not match approved tooling.

Trade-offs between blocking files and keeping teams working

Blocking file sharing across the whole workspace is the simplest control to explain and the one most likely to push people elsewhere. When a sales or support team cannot send a contract or screenshot in Mattermost, they will use personal email, consumer file transfer or a phone camera, and none of those paths leave any trace in your server logs. The better decision is to draw the boundary by who needs which file path and to accept that narrower controls take more administration. Start with the teams that handle regulated or high-value data, apply upload and download restrictions to them through the attribute-based policy options your plan supports, and leave low-risk channels working. Confirm with Mattermost which access policy features are available on your plan and version before you design the groups, because the scope of each control depends on it.

Exceptions will arrive within weeks of go-live, so design the process before the first request. Each exception should name a single approver who owns the business risk, record the specific user or group, the file types or channels involved and the reason, and set an expiry date after which the original policy applies again automatically or a reviewer must renew it. Track exceptions in the same system that records group membership so that removing a user from a group also removes the exception. Ask your Mattermost partner or administrator to test how expired exceptions behave in your environment, since a policy that quietly stays open is worse than a blunt block.

File restrictions also reach beyond the upload button. Users who cannot download a file may still see its name in search results, in message previews and in push notification text, so a control that stops the file itself does not necessarily stop the metadata from leaking to a locked-down device. Review what appears in mobile push payloads and whether your mobile and desktop app policy matches the server policy, and test search results as a restricted user before you announce the change. Notification behavior and file previews vary by client and version, so confirm each one against your own deployment rather than assuming the server setting covers it.

Limits to confirm in your environment

Mattermost file controls depend on the exact server version, the plan you hold, the app versions in use, and the path files take through your network. Treat each card below as a question to answer with Mattermost documentation and your own test results, not as an assumption carried over from another deployment.

Settings by server version

The file and download options you can set depend on the server build you run. Mattermost ships a new server version in binary form on the 16th of each month, and Extended Support Releases (ESRs) follow a separate track. Confirm which settings exist in your exact version, check the release notes for changes between monthly releases and your ESR, and record the version in your test evidence. The v11.7 ESR is supported until 2027-05-15, so an ESR upgrade can change the behavior you tested.

Server releases

Plan-gated file features

Some controls, identity features and deployment options sit behind Professional, Enterprise or Enterprise Advanced plans. Before you design a file policy around a feature, check the current feature list on the pricing page and confirm it applies to your plan and your deployment model. Ask your Mattermost account team to confirm in writing which file restriction options your license includes, because the public page does not list every control.

Pricing page

Mobile enforcement by app version

A server-side setting does not guarantee that every mobile or desktop client enforces the same rule. Test iOS, Android and desktop clients on the app versions your staff actually install, including older builds still in circulation. Check whether a download or share block is applied by the server, by the client, or by both, and confirm what happens to files already cached on a device. Record the results per platform rather than assuming one result applies to all.

Proxy and load balancer file routes

Reverse proxies and load balancers route upload and download requests separately from ordinary API traffic, and rules written for one path can miss another. Confirm which URL paths carry file uploads, file downloads, previews and thumbnails in your version, then check how your proxy caching, body size limits, and any pre-authentication header rules treat each one. A rule that blocks a download in the application can be bypassed if a file route reaches the server through a different path.

Clustered storage and enforcement

A high availability cluster requires shared file storage on Amazon S3, an S3-compatible service or NAS mounted on each node, and local file system storage will not work correctly. Confirm that the storage backend you use applies the same restrictions for every node, and that any storage-level sharing links or direct object URLs are not exposed outside the application's permission checks. Test enforcement on each application server, not only on the one behind your test URL.

HA cluster docs

Evidence for each limit

Write down each control, the version and plan it was tested on, the client platforms covered, and the test you ran with its result. Repeat the test after every monthly upgrade or ESR move, because a change in one layer can silently reopen a path. Keep this record with your change management evidence so reviewers can see what was verified rather than what was configured.

Questions buyers ask before restricting file sharing

How much does restricting file sharing in Mattermost cost?

No fixed figure can be given before the scope is written, because cost follows the work, not a file-sharing switch. The main drivers are the number of user groups that need different rules, the number of client types (web, desktop, iOS and Android), how many integrations and plugins upload or receive files, and how much compliance evidence the policy must produce. DeployOpen does not publish a price list. Ask for a quote built from a written scope that lists each group, client and integration, and separate the one-time design and configuration work from any recurring retesting or support retainer. Also ask whether your Mattermost plan includes the attribute-based controls you intend to use, since that affects what must be configured and what must be licensed.

How long does a file restriction rollout take?

Duration depends on how many policies you need and how much testing each one requires, not on the setting changes themselves. A simple global switch can be applied quickly, while attribute-based rules across several groups, mobile devices and integrations take longer because each combination needs a test. Other factors include whether a change window is needed, how long your compliance team takes to review the policy, and whether device management profiles must be updated for mobile download and share controls. Ask the partner for a written timeline tied to the agreed deliverables, and confirm which steps depend on your own teams, such as approvals and device rollout.

What do we need to provide for a file restriction project?

The work needs a few specific inputs from your organization before it starts. Expect to provide:

  • Admin access to the Mattermost System Console and, if needed, the server configuration file, with a change process your team approves
  • A named policy owner who can decide which groups may upload, download or share files
  • Test accounts in each affected group, so each rule can be verified from the user's side
  • Contacts for your device management and mobile platform team, because mobile download and share behavior often depends on app configuration
  • Contacts for owners of integrations and bots that move files

Without these, the policy can be written but not verified.

Can our in-house team restrict file sharing without a partner?

Yes, a capable internal team can do this, provided it has administrator access, a clear policy, and time to test. The task is mostly configuration and verification, but mistakes are easy to make when rules overlap, when a mobile client behaves differently from the web client, or when an integration bypasses the expected path. A partner adds value when your team lacks the capacity to test every group and client combination, needs an independent review of the policy, or must produce evidence for an assessor. Decide based on who will own the policy after go-live, because that owner must understand each rule and why it exists.

Should we retest file restrictions after the rules change?

Yes. Retest after any change to file policy, Mattermost version, client release, plugin, integration or identity configuration, because each of these can change which actions a user can take. A retest should confirm that restricted users cannot upload, download or share files through every path you intend to block, that permitted users still can, and that the audit trail records the relevant events. Ask a partner whether retesting is included in the fixed scope or offered as an ongoing retainer, and agree on which changes trigger a retest so the policy stays verified over time.

What happens to files already in Mattermost when we add a restriction?

Adding a restriction usually changes what users can do going forward, not what is already stored. Files uploaded before the change generally remain on the server and may remain accessible to users who can still view the channel, so the restriction should be checked against existing content. Confirm how your Mattermost version handles previously shared files, whether you need to review or remove existing content, and how your retention and legal hold settings interact with deletion. Record the decision in the policy so that auditors and users understand what the restriction covers and what it does not.

How DeployOpen scopes and delivers file restrictions

DeployOpen approaches file sharing and download restrictions in Mattermost as a scoped change to your own server, not a generic policy switch. We start from the data your teams handle, the clients they use and the controls your compliance team needs to see, then build and document those settings inside infrastructure you control.

How we scope

  • Map which channels, teams and user groups need file sharing turned off, limited or left open.
  • Inventory mobile and desktop clients, since download and share controls can differ by platform.
  • Agree in writing which attribute-based upload and download policies are in and out of scope.
  • Confirm with your team which controls your plan level and deployment type support before work starts.

How we build

  • Configure file sharing and download settings on the self-hosted server according to the agreed scope.
  • Set up attribute-based policies on upload and download where your plan and configuration allow them.
  • Test each restriction as a real user would, from web, mobile and desktop clients, against the documented intent.
  • Check that restrictions hold after an SSO login and for users in each agreed group.

How we hand over

  • Document each setting, its location in the admin console or configuration, and the user impact it causes.
  • Provide a test record showing which accounts were checked and what each one could or could not do.
  • Describe the change process for future policy edits so administrators can review them before applying.
  • Walk your administrators through the configuration so your team can run and audit it after handover.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer.
  • Re-test file restrictions after Mattermost server upgrades, since monthly and Extended Support Releases can change settings.
  • Ask for a written quote tied to the agreed scope, which identifies the one-time build and any recurring support.

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.