Ravindra BagaleCourses & study guides

26. Row-Level Security (RLS)

26.1 What is RLS?

Row-Level Security restricts which rows of data a user can see, using one report for everyone. In our quick-commerce model: the Pune city manager (Ravindra Bagale) should see only the Pune dark stores (Kothrud, Baner, Hadapsar, Hinjewadi, Wakad) and their orders; the Nashik manager (Shraddha Bagale) only Nashik; the Maharashtra state operations head (Rani) sees everything. Without RLS you would have to build and maintain separate reports per city.

RLS works through roles. Each role contains DAX filter expressions on tables. The filter propagates through relationships (संबंध) – so filtering DarkStore automatically filters Orders.

Ravindra Bagale's Tip

Friends, many students think hiding a page or visual is security. It isn't: anyone with build access can see the data. Use RLS to restrict rows, and OLS (Object-Level Security) when whole columns or tables must be hidden. Clear?