cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
haiyangl104
Frequent Visitor

Response 401: x-powerbi-error-info: GroupNotAccessible

Hi,

 

I have a premium workspace which I am a member in. However, when I tried testing API for Get Group , I'm not getting back any groups:

 

haiyangl104_0-1623184972519.png

 

Later on if I tried accessing a group, I get the following error message:

"x-powerbi-error-info: GroupNotAccessible"

Which is what I expected, because Get Groups shows no groups I have access to.

 

Any help is appreciated!

 

 

1 ACCEPTED SOLUTION
yingyinr
Community Support
Community Support

Hi @haiyangl104 ,

Please review the content in the following links, hope they can help you find any clue or insight.

Power BI REST API in GovCloud - Generate Access Token

Power BI Government API

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
yingyinr
Community Support
Community Support

Hi @haiyangl104 ,

Please review the content in the following links, hope they can help you find any clue or insight.

Power BI REST API in GovCloud - Generate Access Token

Power BI Government API

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

haiyangl104
Frequent Visitor

I found out that my Power BI Pro licensed account is on the Gov Cloud, with address of "https://app.powerbigov.us/". I noticed that the Power BI REST API documentation only have "https://api.powerbi.com" prefix, which is for commercial users. Calling the "commercial version" of Power BI REST API returned nothing, because all my Power BI contents are on the Gov Cloud. I tried the Gov Cloud version of API by switching to: "https://api.powerbigov.us"  but it returns the following error:

HTTPError: 403 Client Error: Forbidden for url: https://api.powerbigov.us/v1.0/myorg/groups

 

lok
Frequent Visitor

Hi @haiyangl104  

Do you find any solution? 

I am also using Power BI Government version.  I am also getting "HTTPError: 403" Client Error: Forbidden for url: https://api.powerbigov.us/v1.0/myorg/groups 

Please let me know if you have any updates. 

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

Get Ready for Power BI Dev Camp

Power BI Dev Camp - September 30th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.