Open Hideo-doi opened 3 years ago
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
When do you triage about this issue.
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