Forum Discussion

Awake Kapoor's avatar
Awake Kapoor
Copper Contributor
Dec 24, 2021

How to use Client id and certificate in PNP Powershell for SPO with Delegated permissions in Az APP

Hello everyone,

 

I have created an Azure AD APP with Delegated permission on SharePoint All Sites.FullControl, I have provided the FullControl to AD APP on SP Site Appinv page, but when i am trying to login using Connect-PnpOnline PowerShell using Client id and Certificate, it is giving me 401 error, and when i assign Application permission it works fine,

 

How to use the Certificate with Delegated permissions ? because delegated permission works fine with Cleint Secret but not with certificate and Connect-Pnponline giving warning for Legacy authentication with secret. Please suggest some solution

1 Reply