As cited
Citation snapshot as of .
identity access
Using Microsoft Graph and Powershell to Mine for Information - Stale Accounts and Licenses
This technical article demonstrates how to use Microsoft Graph API and PowerShell to enumerate Microsoft 365 and Entra user accounts, licenses, and sign-in activity. The author provides code examples to identify stale accounts, unused licenses, disabled users, and last authentication timestamps, then export findings to CSV or GridView for operational review and cost optimization.
Why it matters: Microsoft 365 administrators and security teams can use these queries to discover inactive accounts that may pose a credential or licensing risk, and to audit unused license spending across their organization.
- Source published
- First seen by Cybersecurity Tracker