pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
985 stars 665 forks source link

Connect-PnPOnline- with an option of -ClientId and -ClientSecreat connects successfully but then get unauthorized(401)) for subsequent request example Get-PNPList etc. #3028

Open AnkitSDesai opened 3 years ago

AnkitSDesai commented 3 years ago

Expected Behavior:

Article for the reference. https://www.sharepointdiary.com/2019/03/connect-pnponline-with-appid-and-appsecret.html

Actual behavior

-Get 403 Unauthorized. image

Steps to reproduce behavior

commands: -Connect-PnPOnline -Url ### ClientId "###" -ClientSecret "###"

Which version of the PnP-PowerShell Cmdlets are you using?

What is the version of the Cmdlet module you are running?

Latest

How did you install the PnP-PowerShell Cmdlets?