Report Who Has Access to a SharePoint Site with PowerShell
How to report everyone with access to a SharePoint site, and why the two obvious approaches are both wrong – one flags every site as overshared, the other stays silent while the whole company has Edit.