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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
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
Solved! Go to Solution.
HI @leehbi99,
I'd like to suggest you take a look at the following links if it helps with your requirement:
Regards,
Xiaoxin Sheng
HI @leehbi99,
I'd like to suggest you take a look at the following links if it helps with your requirement:
Regards,
Xiaoxin Sheng
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |