Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Saloni_Gupta
Frequent Visitor

Automate Row Level Security (RLS) permissions in Power BI service

Hi All,

I have a report with Dynamic RLS applied and I am looking for a way to add the users in service/Security to the Dataset Row-Level security in an automated way or by creating DAX measures in Powerbi file and skipping the part where we add users to the Security tab ?
I would like to avoid the dependency of adding the users everytime to the Security tab.
One option that I have found is by creating an Azure Active Directory Security Group. Then add the AAD Security Group to the Role in the Power BI Service. That way we can add users to the AAD Security group and once they are added they will get access granted.
But is there any other way by creating Permissions table and using DAX Measures to implement RLS in PowerBI as that could be really useful?
Thanks in Advance!

1 ACCEPTED SOLUTION
v-binbinyu-msft
Community Support
Community Support

Hi @Saloni_Gupta ,

So far, if you want to implement RLS ,you need create a role with dax in Power BI Desktop and when you publish the report to service need add user to this role.

But if you want to update RLS in service, you can try to use REST API.

There is a case that you could refer, Solved: Can I update Row-level security via Rest API? - Microsoft Power BI Community

 

Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-binbinyu-msft
Community Support
Community Support

Hi @Saloni_Gupta ,

So far, if you want to implement RLS ,you need create a role with dax in Power BI Desktop and when you publish the report to service need add user to this role.

But if you want to update RLS in service, you can try to use REST API.

There is a case that you could refer, Solved: Can I update Row-level security via Rest API? - Microsoft Power BI Community

 

Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.