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
I am trying to use https://login.microsoft.com/ <tenet id>/oauth2/token to get access token for Power BI Admin apis.
I have set up a application and security group in AD and granted all the read access required. I can paste in a token into api call and it works. I can use the above api and return an access token in Postman. How can do it in Power BI using an Service Principal as documented in https://docs.microsoft.com/en-us/power-bi/admin/read-only-apis-service-principal-authentication I get error message "We couldn't authenicate with credentials provided. Please try again. " I am using Anonymous Access , it only offers 2 options
https://login.microsoft.com/ <tenet id>/oauth2
https://login.microsoft.com/ <tenet id>/oauth2/token
Any suggestions would be helpful.
Solved! Go to Solution.
@Anonymous Here's one detailed explanation
You have said -
I am trying to use https://login.microsoft.com/ <tenet id>/oauth2/token to get access token for Power BI Admin apis.
I have set up a application and security group in AD and granted all the read access required. I can paste in a token into api call and it works. I can use the above api and return an access token in Postman.
How to do it ?
@Anonymous Here's one detailed explanation
Thank you for replying. That is using username and password, I didn't mention that I was trying to use Service Principal set up with application permission and as security group.
Thanks for reply. Again I am trying to use Service Principal to connect not my username and password.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |