SPO Remove Site Owner Full Tenant (PowerShell PNP)
Live coding demo for how to remove given Microsoft 365 login across full SharePoint Online (SPO) tenant with PowerShell PNP.
- Revoke Site Collection Admin (SCA) rights
- Revoke Site Owners Group (where name ends with “*Owners”)
Cheers

SOURCE CODE
https://github.com/spjeff/spadmin/blob/master/SPO-Remove-Site-Owner-Full-Tenant.ps1