Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

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
2 tasks
AnkitSDesai opened this issue Dec 11, 2020 · 0 comments
Assignees
Labels

Comments

@AnkitSDesai
Copy link

Expected Behavior:

  • After passing correct clientId and secrets should expect all the read/write functionality should be alowed using pnppowershell commands.

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?

  • PnP PowerShell for SharePoint Online(Latest)

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

Latest

How did you install the PnP-PowerShell Cmdlets?

  • Installed through the PowerShell Gallery with Install-Module
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants