PnP on GCC-High, The remote server returned an error: (401) Unauthorized. #1756
Unanswered
SP-Support
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have registered PnP in Azure and get a good connection to the GCC-High tenant but for any cmdlet I run I get The remote server returned an error: (401) Unauthorized.
I am a global administrator.
The App Registration has been approved.
Here is my connection string
$conn=Connect-PnPOnline -Url $siteUrl -ForceAuthentication -ClientId $clientID -Tenant $tenant -AzureEnvironment USGovernmentHigh -Interactive -ReturnConnection -TenantAdminUrl $tenantAdmin
I am not sure what to look at.
I am on PnP 1.10.0

I just noticed that the app permissions say "https://*.sharepoint.de//AllSites.FullControl" is "sharepoint.de" really Germany even though this is a GCC High environment?
Beta Was this translation helpful? Give feedback.
All reactions