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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
leehbi99
Frequent Visitor

Querying read-only admin api for activity

Hi,


I'm looking at creating service principal to use to log in to Power BI admin so that the GetActivityLog can be queried from Python - unattended.  We'll be running Python to ETL data to our lake.   Our normal admin accounts in Power BI have MFA.

https://docs.microsoft.com/en-us/power-bi/admin/read-only-apis-service-principal-authentication


If I follow steps from page aboveI guess that should get me what I need.   Is there any documentation for connecting with service principal from the client (python) - I guess I need to hit an auth site for token and then use that with request to the API.  

 

Best

 

Lee

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable
1 REPLY 1
Anonymous
Not applicable

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.