Microsoft Teams now shows team owners when their team is going to expire – that if, if you use the Office 365 Groups expiration policy. But tenant administrators don’t have a report showing them when groups expire, so we wrote one in PowerShell for you to use (and improve).
It is nice to have an Azure Active Directory Expiration Policy for Office 365 Groups, but it’s not so good that the policy functions exclusively based on age. Another problem is that administrators have no way of knowing when groups will expire. So we take out PowerShell, write a script, and hey presto, we have a report. We still need to solve the problem of creating a policy that functions based on activity rather than age, but that’s another day’s work.