Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
We are trying to authenticate our REST API's with the ACCESS TOKEN retrieved from the oauth2 api but it is not working. Postman screen snippet:
The token is retrieved however if you investigate that token there is nothing in it so using it leads to 401 - UNAUTHORISED response every single time on other REST API's and embedding asks to login again regardless of the token provided.
We followed the documentation and created the application and secrets etc. and added the permissions:
Our system admin says our user is correctly set up but it seems there is a setting or something missing causing the token not to work.
This is our first time integrating with AZURE / PowerBI so bare with the cluelessness and be so kind as to redirect us to possible solutions.
Hi @vericred ,
Try going into the PowerBi admin centre and enable 'Allow service princples to use Power BI APIs'
I think the best approach would be to create a security group and only give access to certain users, but enabling the above option I was able to get around the 401 - Unauthorized issue.
Cheers,
Ben.
Hoping someone from Microsoft can provide an official response. I have followed the Microsoft documentation and also have the same issue. Appears as though others in the forum also have the same issue.
Kind regards,
Ben.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
4 | |
3 | |
3 | |
3 | |
2 |