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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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

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

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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