Connect-PnPonline 404 Not Found Issue

Just Learning 0 Reputation points
2025-01-09T03:29:54.5966667+00:00

I used connect-pnponline -url https://tenant.sharepoint.com/sites/contoso -Interactive -ClientId "XXX-XXXX-XXXXX-XXXXXX-XXXXX -Verbose

It shows that I'm connected, but I get this error message. Get-PnPSite: The remote server returned an error: (404) Not Found. I have allsites.fullcontrol api permission and it has been granted admin consent.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,758 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.