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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
YasirFazal
New Member

Can I Add/update Row-level security of dataset via Rest API?

I need to implement Secruity on DataSet present in PowerBI Service

 

Scenario

1) Download the Dataset and Add roles + Related filteres using Manage Roles options in the PowerBI Desktop.    

2) Upload the Dataset 

3) (This step which i really would like to Automate using REST api calls)

  1.     Right click on Dataset 
  2.     Click on Security
  3.     All Roles that  i have defined in pbix file of Dataset  are present now 
  4.     I add email address as Members and click save

 

Requirment

I need to automate the step 3 using Rest API. 

I have a mapping database(A simple Excel file)  in which i have a mapping of  Email to Role e.g 500 Records

I only need to read that mapping and make RESTAPI call for each of the record present in my mapping database

 

Once completed.  If some one opens the security of DataSet he should see the mapping in ROW -LEVEL-Security Section

 

Ask 

Which API call should I use and how ? C#.net is my key langauge here.

 

 

 

 

1 ACCEPTED SOLUTION
2 REPLIES 2
GilbertQ
Super User
Super User

Hi @YasirFazal 

 

As far as I am aware this is not currently possible via the APIs.

 

You can vote for the idea on https://ideas.powerbi.com





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors