Data Protection Issues

Power Query Is Not Secure for Excel Row-Level Permissions

Nimra MalikNimra Malik Nov 13, 2026 869 views

Question details

The user needs to know whether Power Query-filtered Excel workbooks connected to a SharePoint master workbook can enforce row-level permissions, and what secure alternatives exist.

Why Power Query Is Not Secure for Excel Row-Level Permissions
Product
Microsoft Excel with Power Query
Device & OS
not provided
Scenario
The user connects separate Excel files to a SharePoint master workbook through Power Query, intending each user to see only assigned rows.
Observed behavior
Excel protection and Power Query filters do not create a reliable security boundary because users may still access or refresh the underlying data.
Before you start

Before choosing a row-level permission method, confirm which users should see which rows and whether the underlying SharePoint workbook contains sensitive data that must not be exposed through refresh or file access.

Solution 1Recommended

Use Power BI row-level security instead of Power Query filters

Choose this when you need enforceable row-level permissions and still want users to analyze their allowed data in Excel.

Excel worksheet protection, workbook structure protection, and Power Query filters are not designed as user-level access control. They can reduce accidental changes but cannot prevent a determined user from accessing refreshed data if they have the connection or file access.

1
Import the source data into Power BI

In Power BI Desktop or the Power BI service, connect to the SharePoint master workbook or underlying data source and load the data into a dataset.

2
Create row-level security roles

In the Modeling tab, select Manage Roles, create a role, and add a DAX filter such as [UserEmail] = USERPRINCIPALNAME() to restrict rows.

3
Publish and assign users

Publish the dataset to the Power BI service, open the dataset security settings, and add the appropriate users or groups to each role.

4
Connect Excel to the secured dataset

In Excel, use Data > Get Data > From Power BI to connect with a PivotTable, so users see only the rows allowed by the Power BI role.

Use Power BI row-level security instead of Power Query filters
Secure row-level access: Power BI roles are evaluated in the service and limit the data returned to Excel, so users cannot simply refresh to see unauthorized rows.
Free Microsoft Office alternative

Try WPS Office as a Free Microsoft Excel Alternative for Daily Spreadsheet Work

WPS Office does not turn Power Query filters into row-level security, but it is a free, lightweight Office suite with strong Microsoft Excel format compatibility. You can open, edit, and save .xlsx workbooks in a familiar interface while using Power BI or SharePoint permissions for actual row-level security.

  1. 1. Download WPS Office: Go to the official WPS website and download WPS Office for Windows, macOS, Android, or iOS.
  2. 2. Open your Excel workbook: Launch WPS Spreadsheets, click Menu > Open, and select the existing .xlsx or .xls file.
  3. 3. Edit and save in Excel format: Use the familiar ribbon tools to review formulas and formatting, then save the file as .xlsx to keep Microsoft Excel compatibility.
  4. 4. Use a separate security layer for row-level access: Keep actual row-level restrictions in Power BI or SharePoint permissions, and use WPS Spreadsheets for compatible editing and analysis.
Full compatibility with Microsoft Excel .xlsx, .xls, and .csv formats for seamless file exchange.Free and lightweight spreadsheet editing for daily tasks without a Microsoft 365 subscription.Familiar ribbon interface reduces retraining when moving between WPS Office and Excel.Clear separation for security: use Power BI or SharePoint permissions for row-level security, and WPS Office for compatible spreadsheet work.
microsoft office alternative - wps office

Frequently Asked Questions

Can Excel worksheet protection or workbook passwords enforce row-level permissions?

No. Excel protection is designed to prevent accidental changes and can often be removed, so it is not a reliable security boundary for row-level permissions.

What should I use instead of Power Query for row-level security in Excel?

Use Power BI with properly configured row-level security roles. Users can then analyze authorized data through Excel-connected PivotTables or other supported connections.

Can users access hidden or filtered rows by refreshing a Power Query connection?

Yes. Power Query filters control data transformation, not user access. A user with access to the query or underlying file may still reach the source data.

Does WPS Office provide a row-level security feature for Excel files?

WPS Office opens and edits Excel files but does not add a security layer to Excel Power Query. For actual row-level security, use Power BI or a permission-enforcing data source; WPS Office is a free alternative for everyday spreadsheet work.