Study FAQ
How do I combine row-level and column-level security in OneLake?
Also asked as 2
- Can OneLake row filters and column restrictions be assigned through separate roles?
- How should a OneLake role restrict both the rows and columns of a table?
Answer
Define the row-level security rule and column-level security policy in the same OneLake security role. OneLake does not support combining separate roles where one supplies RLS and another supplies CLS for the same user; that combination can produce query errors.
For a regional sales audience, one role can grant the sales table, allow only the approved columns, and filter rows to the relevant region. RLS determines which records are returned; CLS determines which fields are visible. These are distinct restrictions and must be tested together.
Confirm the table and engine support the policies. OneLake applies these controls to supported tabular formats; RLS is not a control for unstructured file folders. A rule that references a missing column or cannot be evaluated can block the query rather than expose all rows. OneLake roles granting ReadWrite cannot contain RLS or CLS constraints, so use an appropriate read role for restricted consumption.
Also inspect every other grant. Workspace Admins, Members, and Contributors are not constrained by narrower OneLake roles, and another valid grant may add access. Test as the actual consumer: verify a known allowed row, a forbidden row, an allowed column, and a restricted column through each required access path.
See Microsoft's OneLake table, column, and row-level security and access control model.
Full explanation
DP-600: Securing and Governing Microsoft Fabric Analytics Solutions
Study guide · DP-600
Read the full explanation