Gordgoesfast / Stuff

Stuff
0 stars 0 forks source link

Cannot Register PnP.PowerShell GCCH #1

Open Gordgoesfast opened 1 year ago

Gordgoesfast commented 1 year ago

Trying to get PnP.PowerShell Registered… like shown below.

After months of trying I still cannot register PnP.PowerShell for MackDefense.com GCCH...

I have done the following.... PS C:\Windows\system32> Get-PnPTenantId -TenantUrl mackdefense.sharepoint.us -AzureEnvironment USGovernment ac3abbb3-b2e5-4f77-ab39-90c1a35da753 https://login.microsoftonline.us/{ac3abbb3-b2e5-4f77-ab39-90c1a35da753}/adminconsent?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e https://login.microsoftonline.us/mackdefense.onmicrosoft.com/adminconsent?client_id=31359c7f-bd7e-475c-86db-fdb8c937548e Register-PnPManagementShellAccess -AzureEnvironment USGovernmentHigh -ShowConsentUrl -TenantName mackdefense.onmicrosoft.com

Connect-PnPOnline "mackdefense.sharepoint.us" -Interactive

Request Id: 1ecf1715-d7bd-477f-9943-575213b60e00

Correlation Id: 0e49b02a-37c8-4920-919a-77cd40429ab1

Timestamp: 2023-03-14T23:44:42Z

Message: AADSTS900383: Internal error has occurred during a redirect. Please login directly to your National Cloud dedicated portal.

Tried this… Register-PnPAzureADApp -ApplicationName "PnP PowerShell" -Tenant mackdefense.onmicrosoft.com -Interactive -AzureEnvironment USGovernmentHigh -SharePointDelegatePermissions AllSites.FullControl -SharePointApplicationPermissions Sites.FullControl.All -GraphApplicationPermissions Group.ReadWrite.All -GraphDelegatePermissions Group.ReadWrite.All

Request Id: cdf62c3c-1d3d-4609-b335-5dde20000500 Correlation Id: 2f5aa621-adf1-4821-bc63-02587c488c14 Timestamp: 2023-03-15T01:04:37Z Message: AADSTS900383: Internal error has occurred during a redirect. Please login directly to your National Cloud dedicated portal.

Best case has been this but It simply hangs at this error... https://login.microsoftonline.com/common/oauth2/nativeclient?error=invalid_request&error_description=AADSTS65006%3a+Resource+%27797f4846-ba00-4fd7-ba43-dac1f8f63013%27+had+no+entitlements+matching+required+permissions+configured+on+the+required+resource+access+for+client+%2731359c7f-bd7e-475c-86db-fdb8c937548e%27.+Requested+permission+IDs%3a+%2741094075-9dad-400e-a0bd-54e686782033%27.+This+is+a+problem+with+one+or+more+invalid+permission+ids+on+the+client+RRA+configuration+or+the+resource+entitlement+configuration.%0d%0aTrace+ID%3a+3fe9abed-c0b4-430e-b3cb-bfd8b28f6e01%0d%0aCorrelation+ID%3a+7c37b1e3-0faf-49e7-9693-230a91df4d2b%0d%0aTimestamp%3a+2023-03-15+00%3a46%3a29Z&admin_consent=True

I have been through all the blogs and Github...nothing is working...

Last attempt was this morning with a brand new Azure Account with God rights...

Still getting this...

![Uploading NOT MY JOB.jpg…]()

Gordgoesfast commented 1 year ago

image