RLS stands for Row Level Security and is a function within Power BI used to securely manage what the users see. I am reusing the steps from the Power BI embedding blog, and continuing with the same dataset to define RLS. Another big thanks to Jeroen Vos for teaching me PowerBI.
We start the process in Power BI for Desktop. Open the same report, and then navigate to Modeling and Manage Roles.
![](http://crmkeeper.files.wordpress.com/2019/03/image-014-5.png?w=834)
![](http://crmkeeper.files.wordpress.com/2019/03/image-001-11.png?w=874)
![](http://crmkeeper.files.wordpress.com/2019/03/image-002-10.png?w=952)
This brings up a DAX console, and I will chose the “Address 1: Country/Region”
![](http://crmkeeper.files.wordpress.com/2019/03/image-003-9.png?w=947)
Now we can test the DAX by simulating how it is with another user login. This function is something I wish we had in Dynamics!!!
![](http://crmkeeper.files.wordpress.com/2019/03/image-013-4.png?w=878)
![](http://crmkeeper.files.wordpress.com/2019/03/image-004-9.png?w=1024)
Notice that the data has changed!:)
NB! Remember to publish changes to PowerBI.com
Log into https://www.powerbi.com to complete the rest of the process
Next step is to add a user to the newly created security role. Navigate to datasets and open the security.
![](http://crmkeeper.files.wordpress.com/2019/03/image-006-8.png?w=904)
![](http://crmkeeper.files.wordpress.com/2019/03/image-007-7.png?w=619)
Last step is to Share the Dashboard with the user
![](http://crmkeeper.files.wordpress.com/2019/03/image-008-7.png?w=1024)
![](http://crmkeeper.files.wordpress.com/2019/03/image-009-7.png?w=521)
Open Dynamics 365 and add a new Power BI Dashboard.
![](http://crmkeeper.files.wordpress.com/2019/03/image-002-9.png?w=470)
![](http://crmkeeper.files.wordpress.com/2019/03/image-010-7.png?w=580)
The Administrator (All data)
![](http://crmkeeper.files.wordpress.com/2019/03/image-011-5.png?w=1024)
The Sales user (Only USA)
![](http://crmkeeper.files.wordpress.com/2019/03/image-012-4.png?w=1024)
RLS reporting in Dynamics 365, secure and supported