Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Error testing custom connector in GCC

I'm getting the following token error when trying to test a new custom connector.


Is this an issue or limitation with the current state of the Government Community Cloud (GCC) instances of PowerApps?



During the setup of a new connector, when clicking "Test operation" on step 4. Test.


Error Message:   Operation failed (400), see response below
Method get
"Authorization": "Bearer ........"
tokenexchange (400)
"content-length": "340",
"content-type": "application/json",
"x-ms-apihub-cached-response": "false",
"x-ms-failure-cause": "apihub-token-exchange"
"status": 400,
"source": "",
"message": "Error from token exchange: Bad authorization token. The access token is from wrong audience or resource."
Community Support
Community Support

Hi @ecornell ,


You should use a different set of URLs to access PowerApps US Government

More information:



And more information about GCC



Hope this could be helpful.


Best Regards.


We are using the new government URLs to create and test the connector.

Not applicable

Hi @ecornell are you still receiving this error? 



Yes, the error is still occuring.

New Member

Is this issue resolved? We're still getting this on our environment. Thanks.

No, custom connectors are still broken in our GCC environment.

Regular Visitor

Hi, I'm working for another organization using GCC and we are running into this same error message while doing the same thing. We've validated in a regular commercial tenant that everything works as expected but the same settings in a GCC tenant are resulting in this error.

We thought it could have something to do with the fact that my organization is using a Commercial Azure tenant while the Office 365 tenant is GCC. Are you setup the same way or is everything GCC? If not, then it could just be an issue with GCC in general and Microsoft needs to look further into this...

Regular Visitor

Getting the same error, not sure if you have found a fix to it.

I had a ticket open with Microsoft for a few months and they finally told me they believe the test functionality is broken in the configuration window of custom connectors in GCC tenants. Sure enough, when I added the connector to my Flow and ran it there it worked as expected. May want to just ignore the test tab for now and see if it works.

Helpful resources

PA User Group

Welcome to the User Group Public Preview

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!


Are Your Ready?

Test your skills now with the Cloud Skill Challenge.


Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (56,686)