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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Successful login but unable to retrieve Dataset(s)/Report(s)

When running the web app (in visual studio) which calls the power bi rest api, I can successfully login into power bi and retrieve the workgroups from my portal, however, I am unable to retrieve the dataset(s) and report(s) from my portal and it throws an "Unauthorized" error.

 

Additionally, when testing using postman with the following Power BI endpoints listed below:

https://api.powerbi.com/v1.0/myorg/datasets

https://api.powerbi.com/v1.0/myorg/reports

 

It returns the following json respnse with status code 200

{
    "@odata.context": "http://...#datasets",
    "value": []
}
Status: Investigating

Could not reproduce it in my side as far as my test. You can check whether the api could return the correct result by try it on the web:

  1. https://api.powerbi.com/v1.0/myorg/reports/{reportId}
  2. https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}

Best Regards,
Community Support Team _ Yingjie Li

Comments
v-yingjl
Community Support
Status changed to: Investigating

Could not reproduce it in my side as far as my test. You can check whether the api could return the correct result by try it on the web:

  1. https://api.powerbi.com/v1.0/myorg/reports/{reportId}
  2. https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}

Best Regards,
Community Support Team _ Yingjie Li

Anonymous
Not applicable

I am an admin to the following workspaces in Power BI.

 

Here are some screenshots:

Auth

auth.png

Get Reports

reports.png