Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
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:
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!