Open Jenny-Neal opened 4 years ago
the cmdlet indeed seems not to return updated data. I check the code behind the scenes of the cmdlet, and we're not doing anything specific, we basically return what the server tells us what the sharing status is. This seems to be a server/API issue more than a PnP PowerShell issue unfortunately.
Reporting an Issue or Missing Feature
Issue
Expected behavior
Get-PnPSharingForNonOwnersOfSite returns false if the site is set as 'Only site owners can share files, folders, and the site.' and true if it is another option when looking on a modern site in cog > Site permissions > Change how members can share.
Actual behavior
It can be true or false regardless of the setting on the site in cog > Site permissions > Change how members can share.
Steps to reproduce behavior
Get-PnPSharingForNonOwnersOfSite -Identity $site.Url
Which version of the PnP-PowerShell Cmdlets are you using?
What is the version of the Cmdlet module you are running?
3.22.2006.2
How did you install the PnP-PowerShell Cmdlets?