Study FAQ
Where should I enforce row and object security for Direct Lake models?
Also asked as 2
- How do semantic-model, OneLake, and SQL security differ for Direct Lake access?
- Why do model-only RLS rules not protect other ways of reading the same Fabric data?
Answer
Enforce security at the layer that governs the intended access path. Semantic-model RLS and OLS protect access through that model; they don't follow a user who can read the same source through another engine.
For Direct Lake on OneLake, use OneLake security when the authoritative rule should govern OneLake data across engines. Model-specific rules can further restrict model queries. OneLake roles are resolved before model rules, and broader workspace or data grants must also be considered; a restrictive role isn't a universal deny.
For Direct Lake on SQL, SQL endpoint row rules or views can require DirectQuery fallback. Referenced objects or columns denied by SQL access controls can return errors. These SQL endpoint rules aren't the enforcement mechanism for a Direct Lake on OneLake model.
If consumers must have model-only access, use a fixed identity for the cloud connection, avoid granting them direct source access, and define the model rules. Remember that model rules aren't enforced for users with Write permission; test with the real read-only consumer role rather than Admin, Member, or Contributor.
Validate allowed rows, denied objects, direct source reads, model queries, and framing permissions separately. Current OneLake-security integration also has specific limitations, including unsupported bidirectional relationships when source OneLake RLS is used, so confirm the intended relationship design before release.
Direct Lake security integration. Architecture-specific security matrix.
Full explanation
DP-600: Direct Lake Architecture, Refresh, Fallback, and Security
Study guide · DP-600
Read the full explanation