An improved script that excludes permissions of all system account and account that contain "S-1-5-21"
Office 365 Reporting PowerShell Scripts