Dynamic Column-Level Security (CLS) Filtering for OneLake Security in Microsoft Fabric SQL Endpoints
Dynamic Column Filtering for OneLake Security CLS in Lakehouse SQL Endpoints
We would like to propose an idea regarding the current behavior of Column-Level Security (CLS) in Microsoft Fabric OneLake Security when accessing data through Lakehouse SQL Endpoints.
During troubleshooting and validation sessions with Microsoft Support, we confirmed that CLS is functioning as currently designed. However, we observed a limitation in how CLS behaves during schema validation and query execution from SQL Endpoints and Power BI semantic models.
Current Behavior
After creating a OneLake Security role with CLS restrictions:
Restricted columns are still exposed within the Lakehouse SQL Endpoint schema metadata.
The SQL Endpoint appears to scan or validate the complete table schema before executing the query.
If restricted columns exist in the semantic model, query definition, or metadata discovery process, queries fail with permission errors such as:
“SELECT permission was denied on the column…”
This happens even when users only intend to access permitted columns.
Because of this behavior:
- Power BI semantic models may fail during refresh or schema discovery.
- Developers must manually exclude restricted columns.
- Separate materialized lake views must be created for different security personas.
Additional maintenance and governance overhead is introduced.
Example Scenario
Table:
- EmployeeID
- EmployeeName
- Salary
- SSN
CLS Restriction:
- Salary
- SSN
Expected Experience:
Users should automatically see only:
- EmployeeID
- EmployeeName
Current Experience:
Restricted columns remain discoverable through schema validation, and queries may fail instead of dynamically filtering unauthorized columns.
Proposed Idea
We propose that the Lakehouse SQL Endpoint dynamically recognize the authenticated user principal and automatically apply CLS filtering during schema discovery and query execution.
In this approach:
Restricted columns would automatically be hidden from the schema presented to the user.
Only authorized columns would appear during Power BI schema discovery, SSMS access, and SQL query execution.
Queries and semantic models would execute successfully without requiring developers to redesign datasets or manually remove restricted columns.
Benefits
This approach would:
- Simplify Power BI and SQL development.
- Reduce dependency on materialized lake views.
- Improve enterprise scalability for self-service BI.
- Reduce maintenance overhead.
- Provide a more intuitive CLS experience for Lakehouse SQL Endpoints.
Currently, the materialized lake view workaround is functional, but it introduces operational complexity for enterprise environments managing multiple datasets, users, and security roles.
We believe dynamic CLS-aware schema filtering would significantly improve the usability and enterprise adoption of OneLake Security in Microsoft Fabric Lakehouses and SQL Endpoints.
Thank you for considering this idea.
Recent ideas
Add Global Alignment Controls for Power BI Matrix Values and Headers
Please add a global alignment setting for Matrix visuals that allows users to apply the same alignment, left, center, or right, to all measure columns at once. This should apply to column headers, d...AaronReasoner47 minutes agoNew MemberNew1View0likes0CommentsCase sensitive-insensitive option in Power BI
There should be an option in Power BI for the data in the columns to be either case sensitive or insensitive. When one deals with data involving client names or entity names, case sensitivity-sinsens...sohail_syed_moh48 minutes agoNew MemberNeeds Votes2.3KViews124likes11CommentsGoverned & Regulation for Publish to Web feature
Notifying certain group of individuals if there is any enhancements performed on the semantic model which already hold an active Publish to Web code in place. This ensure in having more security and...Jaswanth_UNHCR1 hour agoNew MemberNew1View0likes0CommentsAllow to use service principal for VNet data gateway connection to SQL Server
Service principal authentication is not supported for Azure SQL server connections when using an on-premises data gateway or a virtual network (VNet) data gateway. As a result we have to fallback to ...Andrei-Sokalau5 hours agoNew MemberNew10Views1like0CommentsProvide a Read-Only / Source-Safe Mode for Schema Shortcuts in Lakehouse
Schema Shortcuts provide a much better management experience than individual Table Shortcuts because they preserve the source schema structure and allow multiple tables to be onboarded at once. Howev...Junghyoen8 hours agoMicrosoft EmployeeNew22Views8likes0Comments