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

2 REPLIES 2
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

 

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Top Solution Authors