Skip to content
VirtualLP Virtual Learning Platform

Row-Level Security, Object-Level Security and Least Privilege

8 min read Topic 26 of 38 1 hands-on lab

Understand it in simple language

RLS filters rows by identity or role. OLS restricts access to model tables or columns. Hiding a column in the field list is not security. Workspace editing roles have different behavior from read-only consumers; RLS is not a substitute for carefully assigning roles.

A dynamic regional security design can map user principal names to regions and propagate that filter through a deliberately tested model. Test users with one region, several regions and no mapping. Never assume a visual filter protects an export or another report using the model.

Do it step by step

In Desktop > Modeling > Manage roles, create NorthViewer with Sales[Region] = "North" for the simple training model. Use View as to verify North revenue 1250 and absence of South rows. Publish to a training workspace, assign a test user to the semantic model role and test as a Viewer. Separately document whether an OLS requirement exists and use supported model tooling if needed. Browser lab: Test regional access.

Check your result

A North viewer must see 1250, not 2300. Test underlying detail as well as totals.

If something goes wrong

Do not put a restricted viewer into an editing workspace role and expect the same RLS protection. Validate actual effective access after every permission change.

Practice data and learning method

Industry practice collection: downloadable retail, finance, HR and operations datasets, dictionaries, full walkthroughs and answer sheets. The cases contain multiple years, multiple related tables, deliberate data defects and known-answer checks. Progress from the small foundation files below to these cases; do not reuse the foundation totals for the larger datasets.

Download Sales.csv, Products.csv, and the dataset guide. These files contain synthetic training data, not real customers. Use the Power BI virtual labs for guided browser practice. Each lab states its supported operations. Then repeat the procedure above in the actual Microsoft tools and save evidence of your result. Try another filter or an intentionally incorrect setting and explain what changed before moving on.

Guided practicals for this topic

Virtual lab · Microsoft Power BI · 25 min

Test regional access

Guided browser practice with visible data, checked actions and expected results. Repeat the linked tutorial in Power BI Desktop.

Open lab

Continue learning from Microsoft

Power BI documentation · DAX reference · Power Query M reference · Power BI analyst skills map. Features, licensing, menus and availability can change; check the relevant official page for your environment.

Practise this topic

Hands-on virtual lab

Apply what you just read in a realistic, guided simulation. Free with a verified account.

Create a free account to track your progress and unlock virtual labs.