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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
luigisax89
New Member

API to grant report acess

Hi everyone,

I’m looking for the best solution to my problem. We have Power BI Service where we upload reports and share them with colleagues via direct access. I want to automate access management through APIs. So, if a user changes departments and should no longer see a report, they are automatically removed. Conversely, if they are added to a department, they should gain access to the report. What are the best practices? Are there APIs to add or remove users with direct access?

 

Thx

1 ACCEPTED SOLUTION
cengizhanarslan
Super User
Super User

  1. Create Entra ID groups per department (or per access bundle), e.g. PBI_Sales_Readers, PBI_Finance_Readers.

  2. Grant the group access to the report.

  3. Your HR/IT system updates group membership when department changes.

Result: users automatically gain/lose access without touching Power BI items.

___________________________________________________________________________________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.

View solution in original post

2 REPLIES 2
v-pnaroju-msft
Community Support
Community Support

Thankyou, @cengizhanarslan for your response.

Hi luigisax89,

We appreciate your inquiry submitted to the Microsoft Fabric Community Forum.

As suggested by @cengizhanarslan , the best approach is to create department based Entra ID security groups and grant those groups access at the workspace level so that all reports inherit the security settings.
Based on our understanding, Power BI REST APIs allow adding or removing users or groups at the workspace level using Groups – Add/Delete User.

Please refer to the links provided below:
Groups - Add Group User - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Groups - Delete User In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Groups - Update Group User - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Workspaces in Power BI - Power BI | Microsoft Learn

We hope the information furnished helps to resolve the issue. Should you have any further queries, please feel free to contact the Microsoft Fabric community.
Thank you.

cengizhanarslan
Super User
Super User

  1. Create Entra ID groups per department (or per access bundle), e.g. PBI_Sales_Readers, PBI_Finance_Readers.

  2. Grant the group access to the report.

  3. Your HR/IT system updates group membership when department changes.

Result: users automatically gain/lose access without touching Power BI items.

___________________________________________________________________________________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.