Reply
avatar user
Anonymous
Not applicable

AccessToken-PowerBi not being able to provide a token and get back the report to the backend

Hi all,

We are using powerBI embeded reports in our application (angular,.Net), we have a premium per user license. Through backend we are accessing the powerbi account and the reports.

We have encoutered a problem with our PowerBi Api and we are getting the error of Forbidden 500.

tamarak_1-1701957338268.png

On our backend we are getting the problem with the line :

var tokenResponse = await client.Reports.GenerateTokenAsync(workspaceId, reportId, generateTokenRequestParameters);

That led me to think that we don't have a problem with accessing the report, but with generating a token that helps us sent it back to the frontend.

I started googling and saw that maybe there could be a problem with license, and/or capacity of tokens,

but if you have a license PremiumPerUser, don't I have

unlimited tokens?

 

If yes, what does error means then ?

If no, where can I check my capacity and how can I upgraded to unlimited? Or what can I do to resolve this error?

If someone had some similar situation, please let us know.

 

Nothing was changed before, it stopped working really suddenly, we managed to do a temporary workaround to show reports with another account, but we have to solve the problem and use original account because of our clients.

 

Thanks in advance!

1 ACCEPTED SOLUTION
avatar user
Anonymous
Not applicable

So just to let everybody know, I managed to find out what was the problem, and it was the license! 
Every license has a capacity of tokens (and you use tokens to fetch a report from the powerbi account back to your application), and all the tokens were used (because of the developpement license that costs around 20$), so that is why we were getting the forbidden.

But my next question about licensing is, if we buy a new license for the same account, would the capacity of tokens be restocked immediately or not ?

View solution in original post

2 REPLIES 2
avatar user
Anonymous
Not applicable

Hi @Anonymous,

Can you please share some more detail information about these operations and configurations.(e.g. embedded steps, configuration, permissions) They should help us clarify your scenario and test to troubleshoot.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

avatar user
Anonymous
Not applicable

So just to let everybody know, I managed to find out what was the problem, and it was the license! 
Every license has a capacity of tokens (and you use tokens to fetch a report from the powerbi account back to your application), and all the tokens were used (because of the developpement license that costs around 20$), so that is why we were getting the forbidden.

But my next question about licensing is, if we buy a new license for the same account, would the capacity of tokens be restocked immediately or not ?

avatar user

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)