Forum Discussion
unauthorized access to reports in a group
I'm trying to access the reports shared in a content package under a group I'm a member of through the API. It seems pretty simple in this link https://msdn.microsoft.com/en-us/library/mt634543.aspx, however, I get "The remote server returned an error: (401) Unauthorized.". I'm able to get reports in my workspace and also the group_Id through the same api and same credentials. I have given permissions to my app to all view groups, view user groups and view content properties, which I'm not even sure if I need. Am I missing or misunderstanding something?
5 Replies
- vospitannikovHelper I
mpd10, I believe that this is PowerBI server side error
I've reported issue with detailed steps to reproduce:
https://ideas.powerbi.com/forums/360879-issues/suggestions/16694833-error-group-reports-embedding-work-only-if-user-e
I would really appreciate if you can vote for it
Thank you in advance - vospitannikovHelper I
Hello
I'm facing the same problem
I'm successfully receiving token, then list of reports in some particular group
But when I'm trying to make report embed in iframe - I'm receiving 401 error during accessing some page ending in ../modelsAndExploration
Have you solved this problem?
Thank you in advance
- psinedRegular Visitor
I'm having a similar issue - error 401 unauthorized, except that I'm running into it when I list reports in a given group.
I'm able to obtain token successfully using this API:
https://login.windows.net/common/oauth2/token
- OR-
https://login.windows.net/{directory_id}/oauth2/token
I'm able to list reports in my personal workspace/group with this API:
https://api.powerbi.com/v1.0/myorg/reports
I'm able to render any of my own reports in an iframe per Power BI REST API documentation.
Now, someone in my organization has shared a few reports with me in another group. I'm able to list all groups I'm shared on using this API:
https://api.powerbi.com/v1.0/myorg/groups
However, as soon as I'm trying to list reports within a particular group (outside my own) I get 401 error using this API:
https://api.powerbi.com/v1.0/myorg/groups/{one_of_the_shared_group_UUIDs}/reports
I'm added to the group with all permissions to view and edit reports in the group and I seem to be able to view reports in the online Power BI portal indeed. I just can't list them via the PowerBI REST API...
Any idea?
- ahsiddiquiFrequent Visitor
i am facing issue geting unauthorized even i received access token. same code is working if login and return response on return page but when i tried to get access token directly and passing to list down all the dashboard getting below error. i tried all the sample available (C# visual studio 2017) GitHub.
The remote server returned an error: (401) Unauthorized.'
- ozhugAdvocate II
unfortunately i have the same issue