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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
PMC_PowerBI
New Member

Got invalid accesstoken in postman

Hii 

I am using push data set REST API to push data in every 5 secs. While I am fetching accesstoken using graphAPIs I got 200 response body with a bearer accesstoken but the accesstoken is not valid. Because using that accesstoken I am not able to handle any rest APIs of powerBI.

 

To verify that I visited to the powerBI restAPI lists where all the APIs are got stored and user able to perform actions for getting knowledge like how the rest APIs are working. Link - Push Datasets - Datasets GetTables - REST API (Power BI Power BI REST APIs) | Microsoft Learn.

I login on this server and I got one bearer accesstoken which seems correct.

 

Now to see the defference between those 2 accesstoken I have just decoded it using https://jwt.io/

After decode I got so many mismatch values like "scp" which is known as scope is not present in the accesstoken that I have got from postman and I think that's why I am not able to handle any rest apis of powerBI. But using auto-generated accesstoken I am able to handle the rest APIs.

 

Please let me what is the wrong thing I am doing else is there any setting of something else I missed.

1 ACCEPTED SOLUTION

7 REPLIES 7
PMC_PowerBI
New Member

Hii @lbendlin , I have redo my application with correct scopes, but still I am not able to get correct accesstoken with scp . Please help me out.

PMC_PowerBI_0-1734338121149.png

I have attached a screenshot of the scopes I have provided. Let me know if I miss something.

As I understand it Delegated is the wrong type.

HIi @lbendlin , can you please tell what are permissions should required here. If not delegated then which type of permission are required here please?

lbendlin_0-1734442987998.png

 

 

PMC_PowerBI
New Member

Hii @lbendlin , I have redo my application with correct scopes, but still I am not able to get correct accesstoken with scp . Please help me out.

PMC_PowerBI_0-1734338121149.png

I have attached a screenshot of the scopes I have provided. Let me know if I miss something.

Anonymous
Not applicable

Hi @PMC_PowerBI 

 

Did lbendlin 's method solve your problem? If so, could you please accept it as a solution? This will help more users who are facing the same or similar difficulties. Thank you!

 

Best Regards,
Yulia Xu

lbendlin
Super User
Super User

You already found the root cause - the missing scope.  Redo your app registration.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.