You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.
Reporting an Issue or Missing Feature
■ Problem
After connecting to Sharepoint with Connect-PnPOnline, the following error occurs when executing Set-PnPSite
■ Background
PnP Management Shell is registered as enterprise application
Blocking legacy authentication for SPO tenants
○SharePoint admin center> Policies> Access Control.
○ SPO Tenant Settings
“LegacyAuthProtocolsEnabled”: False
Permissions are executed by global administrator and SPO administrator
■ Others
→ Does the Set-PnPSite command need to allow legacy authentication?
Expected behavior
Set-PnPSite
-Sharing ExistingExternalUserSharingOnlyActual behavior
Only Set-PnPSite gives an error that is not allowed
Steps to reproduce behavior
$ cred = credential
Connect-PnPOnline https://testtenant.sharepoint.com/sites/test -Credentials $ cred
Set-PnPSite -Sharing ExistingExternalUserSharingOnly
==============
Set-PnPSite: The remote server returned an error: (401) Unauthorized. "Error.
Which version of the PnP-PowerShell Cmdlets are you using?
-[] PnP PowerShell for SharePoint 2013
-[] PnP PowerShell for SharePoint 2016
-[] PnP PowerShell for SharePoint 2019
-[○] PnP PowerShell for SharePoint Online
What is the version of the Cmdlet module you are running?
Version: 3.25.2009.0
How did you install the PnP-PowerShell Cmdlets?
-[] MSI Installed downloaded from GitHub
-[○] Installed through the PowerShell Gallery with Install-Module
-[] Other means
The text was updated successfully, but these errors were encountered: