Skip to content

Issue: Deploying Application Customizer Using PnP PowerShell #4888

Closed Answered by GeorgiaGit
GeorgiaGit asked this question in General
Discussion options

You must be logged in to vote

This was performed on a Microsoft Dev tenant using the Global Admin account to call Connect-PnPOnline
Connect-PnPOnline -Url $siteUrl -Interactive -ClientId $clientID

I assumed being a global admin and the App registration delegated permisions to Sites.FullControl would work.

It did not.

Problem Solved

I created a new app registration using:
Register-PnPAzureADApp -ApplicationName "PnP Online" -Tenant xxxxx.onmicrosoft.com -Store CurrentUser

Connected using the App Registration only:
Connect-PnPOnline -Url $siteUrl -ClientId $clientID -ThumbPrint $thumbPrint -Tenant $tenant

Ran the code again and Application Customizer deployed correctly and began communicating with Clarity.

Thanks,
Andrew

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GeorgiaGit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant