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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
mpd10
New Member

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 5
ahsiddiqui
Frequent 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.'

unfortunately i have the same issue

psined
Regular 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?

vospitannikov
Helper I
Helper 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-wo...
I would really appreciate if you can vote for it
Thank you in advance

vospitannikov
Helper I
Helper 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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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