Controlling Metabase download permissions and export row limits before data leaves
Analysts and business users export query results from Metabase as CSV, XLSX or PDF every day, and the security team needs two answers: who can download, and how much data one file can hold. In Metabase, the first answer is set per group on each database through the Download results permission, which sits alongside View data, Create queries and Manage database in the data permissions model. The second answer is an instance-level setting, MB_DOWNLOAD_ROW_LIMIT, which caps the rows in a file export. Public links are a separate path: a shared link to a saved question or dashboard is not governed by the group download permission, so it needs its own review.
Start by mapping which groups hold view access to sensitive databases, then check whether each of those groups also has Download results. Many teams find that a group granted View data for dashboards also inherited download rights they did not intend to give. Review the row limit with the same care. The setting is read from the environment, so changing it means changing the deployment configuration and restarting the instance. Confirm the current value in your environment and in the environment variables reference before you record it as a control. Also confirm the minimum the documentation allows, because a limit set below the supported floor may not behave as expected.
This control does not stop a user who can view data from reading it on screen, copying a table, or using a question that returns the same rows in another tool. It also does not replace row and column restrictions, which decide what data a group can see in the first place. Separate the two concerns when you document them. Download permission controls the file path, row limits control file size, and data permissions control the underlying records. For PDF and public link behavior, read the exporting results guide and test each format with a non-admin test account before you sign off.
Four routes data takes out of Metabase
Data leaves a self-hosted Metabase through more than one door, and each door has its own control. Download permissions, the export row limit, public links and scheduled outputs are configured in different places, so a setting that closes one route can leave another open.
Downloads from saved questions and dashboards
Users download results from saved questions and dashboards, and these files reflect the saved query and its filters. The download results permission is set per group and per database, so a user who can view a collection may still be unable to export from it. Check each group that reads the data, including groups that inherit access from a parent, and confirm that the permission matches what the group is meant to take away from the system.
Exporting results docsDownloads from ad hoc queries
Ad hoc questions built in the query builder or the SQL editor return results that never passed through a saved, reviewed object. Users with create-queries rights can often reshape a dataset into a new export, so the download permission matters most for groups that can write queries. Test an unsaved query from a restricted account to confirm the export button is hidden or the download is refused, and do not rely on the absence of a saved question as protection.
Public link downloads
Public links make a question or dashboard reachable by anyone who holds the URL, with no Metabase account required. Anyone holding the link can view the content and, depending on how the object is configured, export it, so the export path stays open after the viewer leaves the company. Review which public links exist, who created them, and whether the content behind them should ever leave the network, and remove links that no longer have an owner.
Output sent by subscriptions and alerts
Subscriptions email results on a schedule, and alerts notify people when a value crosses a threshold. The attachment or message may carry rows that the recipient could not open in the app, and recipients outside the organization may receive it if external addresses are allowed. Confirm which email domains are permitted, who can create subscriptions, and whether the export row limit applies to attachments as it does to manual downloads in your version.
Export controls and when each one fits
This table compares the four levers that control what leaves Metabase as a file: the Download results permission per group, the MB_DOWNLOAD_ROW_LIMIT setting, public link sharing, and branding or PDF output. Read each row for what it restricts, where it is configured, and what tightening it costs your users. The main takeaway is that no single lever covers every export path, so most governed deployments combine a group permission with a row cap and a sharing review.
| Control | What it restricts and where it is set | Trade-off of tightening it | When it fits |
|---|---|---|---|
| Download results permission | Turns CSV, XLSX and JSON downloads on or off per group and per database in the data permissions settings, separately from View data. | Analysts who need extracts for spreadsheets or reconciliation are blocked until they get the permission, which adds access requests and support load. | Sensitive databases where most viewers should read dashboards but not take data out of Metabase. |
| MB_DOWNLOAD_ROW_LIMIT | Caps the number of rows in a file export, set as an environment variable on the Metabase process, with a minimum of 1,048,575 rows excluding the header. | Large legitimate extracts may be truncated, so users can receive incomplete files without a clear error unless they check row counts. | Limiting bulk extraction on very large tables, provided teams are told the cap exists and why. |
| XLSX row ceiling | XLSX downloads are limited to 1,048,575 rows regardless of MB_DOWNLOAD_ROW_LIMIT, which is a format limit rather than a setting you can raise. | Teams needing more rows must split output into several files or use CSV, which changes how analysts build extracts. | Planning exports for wide or long result sets, where the format limit matters more than the configured cap. |
| Public link sharing | Public links let anyone with the URL view a question or dashboard without signing in, and whether downloads from them are allowed depends on how the link was shared; confirm this for your version. | Public links are hard to audit and revoke once shared, so tightening them can break existing reports and embedded links. | Low-sensitivity content only. Many organizations disable or restrict public sharing for regulated data. |
| Branding and PDF output | Exports and PDFs carry Metabase branding or organization settings, and PDF exports come from dashboard printing rather than the download permission. Confirm which branding options your edition exposes. | Removing or altering branding may depend on paid features, and PDFs can still carry the underlying data even when tabular downloads are blocked. | Documents sent outside the organization, where you need to control what appears and whether the PDF path is open. |
How the download results permission works per group
Download results is a separate data permission, set alongside View data, Create queries and Manage database in Metabase's data permissions model. It is assigned per group and per database, so a group can be allowed to view orders in one database while being blocked from downloading them. Before you touch the setting, map each group to the databases it needs and decide which groups are allowed to take results out of Metabase at all. Read the data permissions documentation to confirm the option names and levels shown in your version, since the interface labels can change between releases.
Metabase applies the most permissive setting when a user belongs to several groups. If one group grants download and another only grants view access, the user can download. This is the most common source of unexpected exports, because removing a user from one group does not remove a download right they receive through another. Review every group a user belongs to, not only the group that appears on their profile, and check the combined result rather than each group in isolation.
A group with view access but no download permission can still see results on screen, including the rows and columns of a saved question or dashboard. Restricting download does not hide that data from the user, and it does not stop a user from copying values from the browser. Treat download restriction as one control among several, and pair it with row and column security where the data itself must be limited. Before rollout, sign in with a non-admin test account in each affected group and confirm the download options are absent or disabled on questions, dashboards and public-facing pages. Admin accounts bypass most of these restrictions, so testing with an admin account will give false results.
Configure export controls in the right order
This sequence locks down who can take data out of Metabase before anyone relies on the export settings. Each step ends with a check, so the team knows the control is in place before moving on.
Inventory groups and databases first
Before changing anything, list every Metabase group, every connected database and the people in each group. Mark which groups genuinely need to download results (for example, finance reporting) and which only need to view dashboards. Confirm with your data owners which databases hold sensitive fields, since those are where exports carry the most risk. The step is done when you have a written table of group, database and intended download access, approved by the data owner for each sensitive source.
Set download results per group and database
In the admin settings, open the data permissions for each group and set Download results for each database according to your inventory. Start from the most restrictive option for every group, then grant download access only where the inventory calls for it. Note that Download results sits alongside View data, Create queries and Manage database, so a group that can view data is not automatically allowed to download it. The step is done when the saved permissions match your written table.
Set the export row limit in the environment
Set the MB_DOWNLOAD_ROW_LIMIT environment variable in the deployment configuration that your team controls, such as the container definition, service file or Kubernetes manifest. The value must be at least 1,048,575 rows, excluding the header, and XLSX downloads stay capped at 1,048,575 rows regardless of the setting. Restart the Metabase process so the value takes effect, then confirm the variable reached the running process. The step is done when the restarted instance reports the value you set, and you have recorded it in your change log.
Review public links and embedding
Public links and embeds can expose results without a Metabase login, so review them as a separate control. In the admin settings, check which questions and dashboards are shared publicly, and disable public sharing if your policy does not allow it. Then review any embedded content and the authentication method each embed uses, since guest and SSO-based embeds differ in who can see what. Confirm with your security owner which sharing paths are approved. The step is done when you have a list of every public link and embed, each one marked approved or removed.
Test CSV, XLSX and PDF exports per group
Create one test account in each group and sign in as each one. For every test account, try to download a saved question as CSV and as XLSX, and try a PDF export from a dashboard where that option is offered. Groups that should be allowed must succeed, and groups that should be blocked must fail. Include a row count above your limit if possible, to confirm the cap behaves as set. The step is done when every group's result matches the inventory, and any mismatch is fixed and retested.
Record evidence and schedule a recheck
Save the permission export or screenshots, the environment configuration with the row limit value, the public link review list and the test results in your compliance or change records. Ask your team to repeat the test accounts check after each Metabase upgrade, group change or new database connection, since those can alter download behavior. Confirm with your own change process how often the recheck should run. The step is done when the evidence is stored in one place and the recheck owner is named.
Setting the export row limit without breaking large exports
The MB_DOWNLOAD_ROW_LIMIT environment variable sets the row cap for file exports from Metabase, so it decides how much data a single CSV, XLSX or PDF download can carry. The minimum value is 1,048,575 rows, excluding the header, according to the Metabase environment variables documentation. Before you change anything, confirm that figure against the version you run, because the supplied documentation does not show a lower floor. Any plan to cap exports at a few thousand rows should be tested on a non-production instance first, not assumed to work.
XLSX downloads are capped at 1,048,575 rows regardless of what MB_DOWNLOAD_ROW_LIMIT is set to. That ceiling comes from the spreadsheet format itself, so a larger setting does not produce larger workbooks. Teams that expect big extracts should plan for CSV for those cases, and tell report consumers that a long XLSX export will be truncated rather than complete. Test a known large question in each format and compare the row count of the file with the source result to confirm what users actually receive.
Because the supplied facts do not establish a lower cap, treat the row limit as a ceiling you cannot tighten below the minimum, and manage data leaving Metabase with other controls. Restrict the Download results permission per group so only approved roles can export at all. Where a question must never return more than a certain volume, apply a row limit in the database view or query the export depends on, so the warehouse enforces it. Ask the team that owns your Metabase version to document which controls they rely on, and rehearse one restricted export before you rely on any of them.
How a download request passes the export controls
A download starts when a user runs a question or opens a dashboard and chooses an export format. Metabase first checks the Download results permission for that user's groups on the database the question queries, then runs the query. The result is capped by MB_DOWNLOAD_ROW_LIMIT before the CSV, XLSX or PDF file is produced and sent to the user. Public link downloads cross the trust boundary to an unauthenticated recipient, so check that boundary before you enable them.
Export path from request to recipient, with the Metabase trust boundary marked.
Security risks in exports and how to reduce them
Once a result leaves Metabase as a CSV, XLSX or PDF, the permission and row limit settings no longer control it. The risks below cover where exported data can travel, who can reach it, and which accounts can step around the limits you set. Each card pairs a risk with a mitigation and the part of your instance to review.
Public links expose data to anyone
A public link to a question or dashboard lets anyone holding the URL view and download the results without signing in. Public sharing is a separate setting from download permissions, so a group with no download rights can still receive data through a link if public sharing is on. Review which dashboards and questions have public links, who created them, and whether the data behind them is appropriate for an unauthenticated audience. Disable public sharing where it is not needed.
Exporting results docsFiles leave managed storage
A downloaded CSV or XLSX is a copy of the data that sits on an analyst's laptop, in email or in a shared drive, outside the audit trail of your Metabase and database. Metabase cannot control what happens to the file after download. Mitigate this with a policy that limits downloads to groups with a business need, and with data loss prevention controls on endpoints and file shares that your security team already runs. Confirm which groups hold the Download results permission.
PDFs lose branding and provenance
A PDF export can circulate without the context that makes it trustworthy, such as the source database, the query time and the owner of the question. Recipients may treat a stale or altered figure as current. Agree on a naming and footer convention for exported reports, add the question owner and data date to dashboard titles and text cards, and tell report recipients where the authoritative version lives. Confirm what your Metabase version includes in PDF output before you rely on it.
Over-broad group membership
Download rights are granted per group, so a user who belongs to a broad group such as All Users inherits export rights they may not need. Group membership often grows through directory sync or manual additions and is rarely reviewed. Compare the members of every group that holds the Download results permission against your access policy, and remove users who no longer need to export. Pair this with a periodic access review.
Data permissions docsAdmins bypass intended limits
Administrators can change instance settings, including the export row limit, and can view or manage content beyond the permissions of ordinary groups. A limit that applies to analysts may not constrain an administrator account, and admin accounts shared by several people blur accountability. Limit the number of administrators, give each person a named account, and review who can change the MB_DOWNLOAD_ROW_LIMIT value and where it is set. Record changes to that setting in your change process.
Questions teams ask about Metabase export controls
Can the open source edition of Metabase restrict downloads by group?
The export controls covered here sit in the data permissions model, which includes a Download results permission alongside View data, Create queries and Manage database. Confirm on your own version exactly which of these permissions your edition exposes in the admin settings before you design the groups around them. The bigger question for open source is identity: SSO, row and column level permissions and usage auditing are listed on the pricing page as included only in the Pro and Enterprise plans, not in Open Source or Starter. That means group membership in an open source instance is managed by hand or through the sign-in methods that edition supports, and you should check that your group design still holds up under that model before you promise a control to an auditor.
How long does it take to configure download permissions and row limits?
The configuration itself is a small number of settings, so the duration is driven by decisions rather than clicks. Effort grows with the number of groups, the number of databases and collections with different sensitivity, and whether each group needs its own download rule. Before work starts, ask for a written scope that lists the groups, the databases, the export formats in use (CSV, XLSX or PDF) and the test cases that prove each rule. Timelines should be agreed in writing in a fixed-scope statement of work, and the quote should name who signs off each permission decision.
What does the team need to provide before a Metabase export review starts?
Three inputs decide most of the work. First, a group design that maps job roles to Metabase groups, with a named owner for each. Second, data owners for each source database who can confirm which tables contain regulated or personal data and which exports are allowed to leave the platform. Third, test accounts, one per group, so the download and view rules can be checked from the user's side rather than assumed from the admin screen. Without these, the work turns into guesswork about intent, and reviews take longer because every rule needs a decision from someone who was not in the room.
Can our own engineers configure download limits without outside help?
Yes, a capable internal team can set the permissions and the environment variable themselves, provided it has administrator access and time to test. The work is not technically deep, but it is easy to get subtly wrong. Typical mistakes include leaving a broad All Users group with download rights, forgetting that a saved question in a shared collection can expose data to people who cannot open the source table, and assuming a row limit hides data that is still visible on screen. If your team does the work, ask it to keep a test matrix with each group, database and format, and to rerun it after every upgrade and group change.
What does the MB_DOWNLOAD_ROW_LIMIT setting actually cap?
MB_DOWNLOAD_ROW_LIMIT sets the row limit for file exports. Its minimum is 1,048,575 rows, excluding the header. XLSX downloads are capped at 1,048,575 rows regardless of this setting, so a higher value does not raise the XLSX ceiling. Confirm the exact behavior for CSV and PDF exports on your version, and test with a query that returns more rows than the limit so you can see what the user actually receives. Set the value in your deployment configuration, for example in the container or service definition, so it survives restarts and is recorded in version control.
Do public link downloads and embedded views bypass download permissions?
They can behave differently from signed-in downloads, so test them separately rather than assuming the group rule covers them. Public links and embeds are sharing paths that depend on how the content was published and who can reach the link. Metabase's embedding options include modular embedding, full app embedding, public links and the deprecated static embedding, and guest authentication works on all plans, including open source. Confirm for each path whether a download is possible, what row limit applies and who can see the link. Your security review should record the answer for each path, because a control that works for signed-in users can still leave a public link open.
Will a Metabase upgrade change how download controls behave?
Upgrades can change behavior, so every upgrade needs a regression check for exports. Metabase runs application database migrations automatically during upgrades, and the upgrading documentation recommends backing up the application database first, reducing a cluster to a single node for major upgrades, and upgrading release by release from versions older than 40. Metabase 64 is an LTS release published on 16 September 2026 with end of life on 1 December 2027, and Metabase 65 was released on 12 October 2026. Non-LTS versions usually reach end of life after 2 months, so the release you pick sets how often you retest. If a rule breaks, rollback is done by restoring the pre-upgrade application database backup, which is the recommended path, or by running the migrate down command with the newer JAR.
Does removing Metabase branding from exports affect licensing?
Branding changes touch the license terms, so check them before you change anything. The repository ships the open source edition under the AGPL and the commercial editions under the Metabase Commercial Software License, and the commercial terms govern what the paid plans permit. Ask your legal or licensing contact to confirm whether a given edition allows removing or changing branding in exported files, and whether any plan-specific feature is required. Record that answer in the scope document so the engineering work does not begin on an assumption.
Limits to confirm in your environment
Export controls in Metabase depend on the plan you run, the release you deploy, and how people reach results, including public links and scheduled deliveries. The cards below list the items to verify in your own instance before you tell auditors or data owners what can leave the platform.
Plan that includes your features
Confirm which plan your organization needs before you rely on any control. The pricing page places SSO, row and column level permissions, and usage analytics and auditing in Pro and Enterprise only, not in Open Source or Starter. Map each export control you plan to use against the plan that includes it, and get the answer in writing from Metabase before purchase.
Metabase pricingBranding removal in exports
Removing Metabase branding from exports is a feature that depends on your version and plan, so do not assume it applies to every CSV, XLSX or PDF file. Generate a sample of each file type from the release you will run, check the header, footer and any cover content, and record the result. Repeat the check after every upgrade, because export templates can change between releases.
Public link downloads
Public links let anyone with the URL view and, depending on settings, download results without signing in. Confirm whether download permissions apply to public links, who can create them, and how you revoke them. Check that sensitive questions and dashboards are not shared publicly, and document who reviews the list of active links.
Scheduled subscriptions and alerts
Scheduled deliveries can send exported files to email or channels outside your normal access path. Verify whether a subscription owner needs Download results permission on the underlying data, and whether recipients who lack data access still receive attachments. Test with a restricted user account and a subscription that includes a full result set.
Row limits for PDF and CSV
Export row limits set how many rows leave the instance, and the behavior for PDF and CSV in your release is the detail to verify. The environment variable MB_DOWNLOAD_ROW_LIMIT sets the file export limit, with a minimum of 1,048,575 rows excluding the header, and XLSX is capped at 1,048,575 rows regardless. Export a result larger than your limit in each format and confirm truncation and any warning text.
Download permission per group
Download results is a separate permission from View data, so a group can see a table without being able to export it. Review each group against the data permission matrix, including groups inherited from identity provider sync. Test with a user from each group, because a user in several groups may receive the most permissive combination.
Data permissions docsKeeping export settings stable across upgrades
Upgrades are the moment most likely to change who can export what, so treat every upgrade as a permissions review. Metabase runs application database migrations automatically when a new version starts, and the upgrade docs recommend backing up the application database first. That backup is also your rollback path: the docs describe restoring it as the recommended way to roll back, with running the migrate down command on the newer JAR as the alternative. Confirm the backup can actually be restored in a test environment before you start the upgrade, not after something goes wrong.
After the upgrade starts, check the settings that control exports rather than assuming they carried over unchanged. Review the Download results permission for each group in the data permissions view, confirm which groups can view data but not download it, and check that the MB_DOWNLOAD_ROW_LIMIT value still matches the limit your policy sets. Export the same test question as CSV and XLSX from a low-privilege test account and a high-privilege one, then compare the row counts and the outcome. Repeat this after each release you move through, because the upgrade docs recommend going release by release when starting from versions older than 40.
Plan upgrades against the support windows on Metabase's version support page. LTS versions are supported for 14 months and non-LTS versions usually reach end of life after 2 months, so an instance left on a non-LTS release will need another upgrade sooner than one on an LTS line. Check the page for the current end-of-life date of your version before scheduling the work, and record that date next to your export policy so the next review has a fixed deadline. Where a major upgrade requires reducing a cluster to a single node because of the migration lock, schedule the export checks for the window when the full cluster is restored.
How DeployOpen scopes and delivers Metabase export controls
DeployOpen approaches Metabase download permissions and export row limits as a written, fixed-scope piece of work inside your own infrastructure. We map who may download results, set the row limit for file exports, and check public link and branding settings before anything is handed over.
How we scope
- Inventory every group, database and collection that can currently download results as CSV, XLSX or PDF.
- Agree in writing which groups keep the Download results permission and which lose it.
- Confirm the intended MB_DOWNLOAD_ROW_LIMIT value and whether XLSX exports need a documented exception.
- Confirm whether public links are in use and who is allowed to create them.
How we build
- Apply group-level download permissions in a staging copy before changing production.
- Set the export row limit environment variable in your deployment configuration and record the value.
- Test a CSV, XLSX and PDF export from each representative group and confirm the results match the design.
- Review public sharing settings and branding on exported files against the written scope.
How we hand over
- Deliver a permission map listing each group, the data it can reach and its download rights.
- Document the row limit setting, where it is configured and how to change it safely.
- Provide a test script your administrators can rerun after upgrades or group changes.
- Walk your administrators through the change log and the open items that still need an owner.
How we support
- Support is available as a retainer for changes to groups, export rules and new databases.
- Retesting covers export behavior after each Metabase upgrade your team plans.
- Ask any support provider to confirm response scope, change control and who approves permission changes.
- Keep permission and export evidence current for access reviews your compliance team runs.

