Following on from my last blog on RLS, I will now demonstrate how to initiate the roles created in Power BI Desktop. Whilst the desktop version is great for testing security, you have to configure the report in the Power BI Service to enforce permissions.
Before doing anything, ensure you have published a report with RLS onto the Power BI Service. If you would like to use my workbook as the example to follow, leave a comment below.
Configure Power BI Service
1. Navigate to the Datasets tab and click the ellipsis button (‘…’) on the ‘RLS Part 2’ dataset (or whatever you have called your published report). The select the Security option.
2. Let’s assign two email accounts to the users ‘Stephen’ and ‘Amy’. These must use a work domain – Hotmail, Outlook, etc. accounts are not permitted with Power BI. Click Add when you are happy.
3. Ensure the RLS roles are saved. You will end up with the following:
4. The roles are now configured. Both email accounts will only see data for the person they have been assigned to.
NOTE: You can add numerous email accounts to a specific role. For this example, the roles are done by person, but you may want to add a whole department containing 10 people to a given role.
Testing Roles using Power BI Service
This is actually really simple. Go back to the Security settings (shown above). Click the Ellipsis button and select ‘Test as Role’.
You will now only see sales data for the Sales Representatives that report to Stephen.
Conclusion
RLS is now out of preview mode and released into General Availability. Whilst the capabilities are still pretty new, the additional DAX layer over the GUI enables more complex security capabilities. As with all features in Power BI, regular updates are to be expected – so if RLS currently isn’t fit for your scenario, it could be very soon.
Recommended Reading
o Reza Rad’s Blog – http://radacad.com/row-level-security-configuration-in-power-bi-desktop
o Power BI Community Blog – https://community.powerbi.com/t5/Community-Blog/Row-Level-Security-in-Power-BI/ba-p/31031
o Devin Knight’s Blog – https://devinknightsql.com/2016/07/01/power-bi-row-level-security/
How Artificial Intelligence and Data Add Value to Businesses
Knowledge is power. And the data that you collect in the course of your business
May
Databricks Vs Synapse Spark Pools – What, When and Where?
Databricks or Synapse seems to be the question on everyone’s lips, whether its people asking
1 Comment
May
Power BI to Power AI – Part 2
This post is the second part of a blog series on the AI features of
Apr
Geospatial Sample architecture overview
The first blog ‘Part 1 – Introduction to Geospatial data’ gave an overview into geospatial
Apr
Data Lakehouses for Dummies
When we are thinking about data platforms, there are many different services and architectures that
Apr
Enable Smart Facility Management with Azure Digital Twins
Before I started writing this blog, I went to Google and searched for the keywords
Apr
Migrating On-Prem SSIS workload to Azure
Goal of this blog There can be scenario where organization wants to migrate there existing
Mar
Send B2B data with Azure Logic Apps and Enterprise Integration Pack
After creating an integration account that has partners and agreements, we are ready to create
Mar