Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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
Solved! Go to Solution.
Create Entra ID groups per department (or per access bundle), e.g. PBI_Sales_Readers, PBI_Finance_Readers.
Grant the group access to the report.
Your HR/IT system updates group membership when department changes.
Result: users automatically gain/lose access without touching Power BI items.
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.
Create Entra ID groups per department (or per access bundle), e.g. PBI_Sales_Readers, PBI_Finance_Readers.
Grant the group access to the report.
Your HR/IT system updates group membership when department changes.
Result: users automatically gain/lose access without touching Power BI items.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |