Microsoft 365 : PowerShell script to get all the external users from all site collections in a tenant
PowerShell script to list all site collections in Microsoft 365 tenant
PowerShell script to list all site collections in Microsoft 365 tenant
Detailed article to search Microsoft 365 unified audit logs using PowerShell CMDLET – Search-UnifiedAuditLog
Must read article for M365 admin / Azure admin / Exchange admin