- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?

Helpful resources
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.
Power BI Monthly Update - June 2025
Check out the June 2025 Power BI update to learn about new features.

User | Count |
---|---|
9 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |