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! Get ahead of the game and start preparing now! Learn more
HI all,
I am trying to access a published PowerBI report via Python. Hence I am facing some issues with the correct login to the report which is located at the page 'https://apps.powerbi.com/groups/me/apps/...'.
I know that this is a basic question. I have tried to use the Python library adal, however there is some issues with this.
I found this https://bitbucket.org/omnistream/powerbi-api-example/src/master/ but the login there is to the api and not to the app.
I was wondering what the best way is to do
Solved! Go to Solution.
If you use Selenium or Workfusion or any other RPA tool, what do you need Python for? Scripting the clickthrough path?
I am searching for an option to login via my Azure account to an embedded PowerBI dashboard, not to the PowerBI data set itself.
understood. But since you are already using Selenium you could also consider bypassing/emulating the login through mouse clicks.
If you use Selenium or Workfusion or any other RPA tool, what do you need Python for? Scripting the clickthrough path?
Thanks for your answer.
I need to access PowerBI via Python + Selenium and want to test the embedded report into a web page. Because of that I do not want to access the dataset itself.
As I said earlier this is not a good requirement. Rethink what you are ultimately trying to accomplish.
That is the best way how to test "normal" user behaviour and hence I cannot rethink it.
You bring up a good point though. At the moment Power BI does not have any testing capabilities that you might expect from a standard development environment where writing test scripts is part of the process. It might be worth raising this as an idea/requirement to see if anyone else would be interested.
I got that same question internally the other day. What forces your python app to connect to a Power BI dataset rather than to the original underlying data source? Power BI should not be a source system as it is not the system of record.
Anyway, here's the documentation:
Dataset connectivity and management with the XMLA endpoint in Power BI - Power BI | Microsoft Docs
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 12 | |
| 7 | |
| 4 | |
| 3 | |
| 3 |