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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-yiruan-msft
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
v-yiruan-msft
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.
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

 

Anonymous
Not applicable

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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