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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
IhorK
New Member

Power BI Rest API - Remove user access to Report

Hello!

Is it possible to remove access to a Power BI Report for a particular user with Power BI Rest API?
As I found out from the documentation there is an API call to remove a user from a workspace as a whole.
But I need an API call that will be equivalent to UI actions: Report -> Manage Permissions -> Direct access (People and groups with access) -> Remove access.

 

Thank you in advance for your help!

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

Hi @IhorK ,

 

As far as I know, currently Power BI doesn't support you to add permission or remove permission for users to specitific report by Rest API. You need to share or remove permission manually in Power BI Service as the step you mentioned above.

You may refer to this blog which contains all Rests API for Power BI Report.

Currently the best workaround by Rest API is to add/remove your end user in your workspace and then they could see or not see the report.

For reference: Groups - Add Group User

 

Best Regards,
Rico Zhou

 

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

2 REPLIES 2
v-rzhou-msft
Community Support
Community Support

Hi @IhorK ,

 

As far as I know, currently Power BI doesn't support you to add permission or remove permission for users to specitific report by Rest API. You need to share or remove permission manually in Power BI Service as the step you mentioned above.

You may refer to this blog which contains all Rests API for Power BI Report.

Currently the best workaround by Rest API is to add/remove your end user in your workspace and then they could see or not see the report.

For reference: Groups - Add Group User

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-rzhou-msft ,

I have a similar requirement but want to share the workspace report/dashboard across tenants. 
Is it possible to share access to the workspace across tenants using API?

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors