Forum Discussion
Power BI Government API
The biggest difference between Government and Commerical is that Government has more restrictions than Commerical does. So, lots of features come later on GC Cloud.
This link goes over the limitations of the different Government Cloud options:
Microsoft 365 Government Community Cloud (GCC) is designed for federal, state, and local government.
Microsoft 365 Government Community Cloud High (GCC High) is designed for federal agencies, defense industry, aerospace industry, and other organizations that hold controlled unclassified information. This environment is suited for national security organizations and companies that have International Traffic in Arms Regulations (ITAR) data or Defense Federal Acquisition Regulations Supplement (DFARS) requirements.
The Microsoft 365 DoD environment is designed exclusively for the US Department of Defense.
This link goes over all the different API web addresses for government
Here's the Power BI Government Blog
For using the API you would use it the same way as you would use the Commerical API with the difference being the address.
https://api.powerbi.com/v1.0/myorg/
vs
https://api.powerbigov.us/v1.0/myorg/
So the same calls found on this link would be used
https://docs.microsoft.com/en-us/rest/api/power-bi/admin/datasets_getdatasetsasadmin
Hope this helps.
Did my answer(s) help you? Give it a kudos by clicking the Thumbs Up! ?
Did my post answer your question(s)? Mark my post as a solution. This will help others find the solution.
Hi Watsky
I am also using Government Power BI Version.
I can get a bearer token using postman.
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."
Any thoughts on this error message?
Get request I am using - https://api.powerbigov.us/v1.0/myorg/groups/{dataset_ID}/datasets
- Watsky4 years agoSolution Sage
Hey Anonymous ,
It's hard for me to say without knowing more background on how you're trying to connect to it for instance what you're using for your token uri, auth uri, or redirect uri. What I can tell you is that if you're Azure authentication is MFA then Postman can't handle the request. Postman can only do single factor. If you want to test using Postman you can still do it but you'll need to grab a token from a different place.
1. Log into apps.powerbigov.us
2. Click F12
3. Navigate over to Network
4. Click through the different requests that are shown (Some may just have numbers. These usually have the bearer)
5. Copy the token and give that a try.
Did my answer(s) help you? Give it a kudos by clicking the Thumbs Up! ?
Did my post answer your question(s)? Mark my post as a solution. This will help others find the solution.- Anonymous4 years agoNot applicable
Hi Watsky
Here is the background or more details about the issue. I completed below steps till now
- Creating an App in Power BI developers website - https://app.powerbigov.us/apps : - done
- Providing necessary permissions to the App in Azure – done
- Generating access tokens using Postman – done url using to generate bearer token is - https://login.microsoftonline.com/common/oauth2/token
- GET/POST request using Postman with bearer tokens created from previous step – Pending (This is where we are getting 403 forbidden error)
Redirect uri - http://localhost/redirect/
MFA is not enabled in Azure.
- gpfox4 years agoFrequent Visitor
I am having the EXACT same issue with the EXACT same steps and GET request. Can someone please help Anonymous and myself