Replies: 1 comment
-
When you use secrets instead of certificates, it means that you are using legacy authentication ACS (Access Control Services). Legacy auth uses the XML based permission grants with SharePoint app-only service principals. If your permissions above are granted correctly, try adding a certificate to the app registration instead of a secret, and use the cert thumbnail or base64 encoded cert, and it should work. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
$clientID = ""
$clientSc = ""
$TenantId = ""
#Parameters
$SiteURL = "https://testsite/"
$ListName = "ListName"
#Connect to SharePoint Online
Connect-PnPOnline -Url $SiteURL -ClientId $clientID -ClientSecret $clientSc
Get-PnPList | Select Title, ItemCount
Throws error in subject, but I have all permissions set, can someone point what is wrong?

Beta Was this translation helpful? Give feedback.
All reactions