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
Hello Guys,
I have possibility to test rest api calls using Try it feature within docs like here:
https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/execute-queries-in-group#code-try-0
Is there any way to log in as service pricipal to test access?
Best,
JAcek
Solved! Go to Solution.
Hi @jaryszek,
It is not possible to use the Try it feature in Microsoft Learn documentation to test Power BI REST APIs as a Service Principal.The Try it feature only supports interactive delegated authentication (user sign-in) and doesnt support the OAuth 2.0 client credentials (app-only) flow required for service principals
To test Power BI REST APIs as a Service Principal you must obtain an app only access token and call the API using an external REST client (Postman, curl, PowerShell, VS Code REST client or any other tools)
Hi @jaryszek,
It is not possible to use the Try it feature in Microsoft Learn documentation to test Power BI REST APIs as a Service Principal.The Try it feature only supports interactive delegated authentication (user sign-in) and doesnt support the OAuth 2.0 client credentials (app-only) flow required for service principals
To test Power BI REST APIs as a Service Principal you must obtain an app only access token and call the API using an external REST client (Postman, curl, PowerShell, VS Code REST client or any other tools)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 |