Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi all!
Running into some issues with setting up automatic refreshes for the M365 usage analytics API (accessed via reports.office.com/pbi/v1.0/{tenantID}). My organization utilizes PIM roles, so when I got to upload the report to the power BI service, and set up automatic refreshes with OAuth credentials, the refresh fails, unless I'm PIMed into the reports.reader role. Is there any way to set up the refreshes on this data without having to PIM in each time?
Setting up automatic refreshes for the M365 usage analytics API while utilizing PIM (Privileged Identity Management) roles can be challenging due to the temporary nature of these roles. Here are some strategies to manage automatic refreshes without having to PIM in each time:
Use Service Principal (App Registration):
Steps to Create and Use a Service Principal:
Register an Application in Azure AD:
Grant API Permissions:
Create a Client Secret:
Configure the Data Source in Power BI:
Use a Dedicated Service Account:
PIM Configuration for Long-Term Access:
Automate PIM Activation:
Step-by-Step Guide:
Register the App and Set Permissions:
Connect Power BI to the API:
Set Up Automatic Refresh in Power BI Service:
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.