
Microsoft 365
M365 Tenant Health: Why It's Probably a Mess
Microsoft 365 tenant health audit checklist: detect orphaned groups, expired app secrets, CA policy sprawl, and SharePoint chaos with Graph API scripts.
By Paul Bentley11 min read
On this page
- Quick reference: tenant health metrics
- 1. Orphaned M365 groups
- Detecting ownerless groups
- Finding stale groups
- What to do about it
- 2. SharePoint site sprawl and dormant sites
- Detecting dormant sites
- What to do about it
- 3. Entra app registrations with expired secrets
- The credential audit
- What to do about it
- 4. Naming convention chaos
- Measuring compliance
- What to do about it
- 5. Conditional Access policy sprawl
- The CA audit
- Auditing named locations
- What to do about it
- 6. Security defaults vs. custom CA confusion
- Checking for gaps
- What to do about it
- The governance stack that prevents all of this
- Group lifecycle
- Application governance
- Conditional Access hygiene
- Running the full audit
Every Microsoft 365 tenant I inherit has the same problems. The symptoms vary in severity, but the pattern is remarkably consistent: groups that nobody owns, SharePoint sites that nobody maintains, app registrations with secrets that expired six months ago, and a Conditional Access policy set that reads like geological strata from successive security audits.
These are not skills failures. The people who built and maintained these tenants were perfectly competent. The problem is that M365 tenants drift towards chaos by default. Every time someone creates a Teams channel, spins up a SharePoint site, or registers an application, the tenant gets a little messier, and without deliberate, automated governance, nothing reverses that drift.
This post is a tenant health assessment checklist. For each anti-pattern, I will show you how to detect it with Graph API, give you a sense of scale so you know whether your numbers are normal, and explain what to do about it. If you are looking for the broader case for standardisation and repeatable baselines, the Standardisation post covers that ground. This post is the diagnostic that tells you where to start.
Prerequisites: all scripts use the Microsoft Graph PowerShell SDK v2.x and require PowerShell 7+. Connect with the scopes you need before running each section. The snippets below are kept concise for readability; for production-ready Graph API patterns with proper error handling and parameterisation, see Microsoft Graph API for Architects.