Cleanup M365 Azure AD groups via PowerShell
Clearing old or orphaned groups is also important in cloud environments, especially in larger structures. So an easy way is to check if there are disabled users in Azure AD groups. Of course there can be also some license savings in M365 if disabled users are removed. This use case I wrote a small PowerShell …