From the course: Microsoft Power BI Data Analyst Associate (PL-300) Cert Prep by Microsoft Press

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Implement row-level security roles

Implement row-level security roles

- [Instructor] In this sub lesson, we are going to implement row-level security roles. So first off, what is row-level security? Row-level security or RLS can be used to restrict data access for given users. Filters restrict data access at the row level, and you can define filters within those roles. Roles are implemented inside the Power BI Desktop and role assignments are done in the Power BI service. So the configuration methods for row-level security, we can use what's called a static method, which uses a fixed value in the DAX filter. Or we could use the dynamic method which uses a DAX function, which does not require continuous maintenance of the role. It uses the USERPRINCIPALNAME DAX function to determine the User Principal Name for a user. A UPN consists of a UPN prefix, which is the user account name, joined with a UPN suffix, which is the DNS domain name. And the example we have down below there is someone@example.com. And just for completeness' sake, there is another…

Contents