[BUG] Allow MemberCanShare doesn't work when Authentication with Credentials or with Multi-Factor authentication enabled #3519
Replies: 2 comments
-
additional information: |
Beta Was this translation helpful? Give feedback.
-
also the same behavior when i use the Parameter "MembersCanShare="true" in the pnp provisioning template |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Reporting an Issue or Missing Feature
I try to enable sharing for members, but i always get an Access denied error.
My Account is Global Admin and also SiteAdministrator of the SPO Site
Connect-PnPOnline "https://tenantname.sharepoint.com/sites/testsite" -interactive
If i authenticate with an Azure AD App Registration it works
Connect-PnPOnline "https://tenantname.sharepoint.com/sites/testsite" -ClientId $clientid -Thumbprint $thumbprint -Tenant $tenantid
Expected behavior
It should change the SharingSetting to SiteMembers can share files and folders also with interactive login
Actual behavior
Steps to reproduce behavior
if you run this code it produces an error:
if you run this code it works:
What is the version of the Cmdlet module you are running?
PnP.Powershell 2.2.0
Which operating system/environment are you running PnP PowerShell on?
Beta Was this translation helpful? Give feedback.
All reactions