Replies: 1 comment 1 reply
-
@PratikD21 - Not sure if you resolved this but I did it this way for Sites.Selected Register-PnPAzureADApp -ApplicationName SitesResourceSpecific -Tenant contoso.onmicrosoft.com -Store CurrentUser -GraphApplicationPermissions "Sites.Selected" -Username "user@contoso.com" -Password (Read-Host -AsSecureString -Prompt "Enter Password") |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
While executing below cmdlet getting error as per below image. But, from Azure App Registration Portal, "Sites.Selected" is present for selection in API Permission.
Register-PnPAzureADApp -ApplicationName SPAutomation -Tenant zzzz.onmicrosoft.com -SharePointApplicationPermissions "Sites.Selected" -OutPath C:\Certificate\ -CertificatePassword (ConvertTo-SecureString -String "password" -AsPlainText -Force) -CommonName MyCertificate -DeviceLogin
Error :

Beta Was this translation helpful? Give feedback.
All reactions