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/
Introduction to Data Wrangler in Microsoft Fabric
What is Data Wrangler? A key selling point of Microsoft Fabric is the Data Science
Jul
Autogen Power BI Model in Tabular Editor
In the realm of business intelligence, Power BI has emerged as a powerful tool for
Jul
Microsoft Healthcare Accelerator for Fabric
Microsoft released the Healthcare Data Solutions in Microsoft Fabric in Q1 2024. It was introduced
Jul
Unlock the Power of Colour: Make Your Power BI Reports Pop
Colour is a powerful visual tool that can enhance the appeal and readability of your
Jul
Python vs. PySpark: Navigating Data Analytics in Databricks – Part 2
Part 2: Exploring Advanced Functionalities in Databricks Welcome back to our Databricks journey! In this
May
GPT-4 with Vision vs Custom Vision in Anomaly Detection
Businesses today are generating data at an unprecedented rate. Automated processing of data is essential
May
Exploring DALL·E Capabilities
What is DALL·E? DALL·E is text-to-image generation system developed by OpenAI using deep learning methodologies.
May
Using Copilot Studio to Develop a HR Policy Bot
The next addition to Microsoft’s generative AI and large language model tools is Microsoft Copilot
Apr