Unable to get SharePoint site via Entra ID APP client ID and secret value through PNP #5080
Unanswered
prakashkumarsingh514
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.
-
Hi,
I have created APP Id in Entra ID and given API permission "Sites.Selected" and also at SPO site granted "Full control" permission through "Grant-PnPAzureADAppSitePermission"
Now when running below command:
Connect-PnPOnline -Url "https://mytenant.sharepoint.com/sites/FileDocs" -ClientId "r78ede5f-9456-42sd-9h36-e89704077654" -ClientSecret "F3l8Q~Zo7Aiapv3h9KgeOjyi2ie69IMi"
Getting error:
Get-PnPSite: Unexpected response from the server. The content type of the response is "". The status code is "Forbidden".
Can we not use Client Secret in PNP, need help on this.
Beta Was this translation helpful? Give feedback.
All reactions