March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
To any one reading this, I was wondering if you have come to a situation where you implement RLS on all of your reports (let say about 30). The RLS is set so that users assigned to site A Active Directory (AD) group can only see data for site A, users assigned to site B (AD) group can only see data for site B, and so on. For example, let say I have a fact table for Sites and I create RLS on this table and my RLS are:
SiteA --> filter created is --> [site] = A
SiteB --> filter created is --> [site] = B
The issue now is that when a new sites C, D, and so on are open, then all reports need to be updated to add a new RLS and corresponding assignments need to be done in the portal. For example:
SiteC --> filter created is --> [site] = C
SiteD --> filter created is --> [site] = D
Is there any good solution for something like this where each report won't need to be updated everytime a new site is added? I am looking for a way to set global RLS for all the reports in my environment or something that could work similar to this. If it exists, I am not aware of it.
Thanks in advanced for your feedback.
Solved! Go to Solution.
@yoismelp . Have you create a table like
Site - Email and joined it with fact table (many to many bi-direction is fine too)
and then create a role with filter
[Email] = userprincipalname()
I think this approach should work
Assign this role to a security group
How to use Row Level Security (RLS): https://youtu.be/NfdIA0uS6Nk
@yoismelp . Have you create a table like
Site - Email and joined it with fact table (many to many bi-direction is fine too)
and then create a role with filter
[Email] = userprincipalname()
I think this approach should work
Assign this role to a security group
How to use Row Level Security (RLS): https://youtu.be/NfdIA0uS6Nk
@amitchandak , this helped. Thank you very much! I am glad I had a Power Automate job pushing the Azure AD data to SQL.
With that, I created a dataflow table (my users-sites table as you suggested) and now I can use that in all of our reports and when an update is needed, now we just need to update the dataflow. However, do you know if there is an easy way to get the AD data into Power BI without copying the data to SQL first so the PBI does not rely on this flow?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |