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
Anonymous
Not applicable

Rest API for Government Power BI

Hello,

 

I am using Government Power BI Version. 

Using postman I can get a bearer token.  

But when I tried to do a simple GET or POST method using postman I am getting this error "403 Forbidden - The request was a legal request but the server is refusing to respond to it. Unlike a 401 Authorization response, Authenticating will make no difference."

 

Below is sample Get request from MS documentation and a sample request I am using.

Get request for commercial Power BI - GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets 

Get request I am using for Gov Power BI - https://api.powerbigov.us/v1.0/myorg/groups/{groupId}/datasets

 

Any one face similar kind of error on Goverment Power BI and any thoughts on this error message? 

 

Thanks!

6 REPLIES 6
v-shex-msft
Community Support
Community Support

HI @Anonymous,

AFAIK, the rest API of the government cloud has some differences with the common tenants. (e.g. verification and authorizations)

If the same operations work normally on common tenant but failed on gov cloud, I'd like to suggest you contact the support team with the 'National clouds' channel.

Support | Microsoft Power BI

submit a support ticketsubmit a support ticket

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
lbendlin
Super User
Super User

yes, this is not permitted on the Government Power BI cloud.

Anonymous
Not applicable

Hi @lbendlin 

You mean Power BI Government cloud, don't support Power BI Rest APIs?

Can you please check below post.

https://community.powerbi.com/t5/Developer/Power-BI-Government-API/m-p/1302935 

You are right, technically it should work.

Ask your tenant admin if they have blocked certain API permissions like Tenant.ReadAll

Anonymous
Not applicable

@lbendlin 

I am the Application admin and Power BI Admin in Azure. I don't have Global Admin access in Azure, I can see that application has all required permissions in Azure. Any other settings do I need to check/verify? 

 

lok_0-1630978966065.png

 

Has this been resolved? We are seeing the same issue with authentication

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.

Top Kudoed Authors