Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
vericred
Regular Visitor

Access Token not working when trying to Authenticate REST API's as well as embedding of reports.

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:

vericred_0-1684936161379.png

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:

vericred_1-1684936355945.png

 

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.

2 REPLIES 2
bhalicki
Helper V
Helper V

Hi @vericred ,

Try going into the PowerBi admin centre and enable 'Allow service princples to use Power BI APIs'

bhalicki_0-1685142050411.png


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.

bhalicki
Helper V
Helper V

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.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.