Find the accounts nobody uses anymore
DoubleCheck looks at the last successful sign-in of every enabled user in your tenant once a day, and tells you which accounts have not been used for the number of days you choose.
The problem
People leave, projects end, test accounts stay. The account is still enabled, still has its licence and its access, and nobody notices that it is no longer used.
The last sign-in is in the admin center per user, but there is no alert when an account goes quiet.
Why it matters
An unused account with a working password is an easy way in: nobody would notice a sign-in, because nobody uses it.
Inactive accounts often still hold a paid licence. Finding them is also a way to lower the bill.
How to check it manually
In the Microsoft Entra admin center, open Users, All users, add the column Last sign-in and sort on it.
With Microsoft Graph PowerShell:
Connect-MgGraph -Scopes User.Read.All, AuditLog.Read.All
Get-MgUser -All -Property DisplayName,UserPrincipalName,UserType,AccountEnabled,SignInActivity |
Where-Object { $_.AccountEnabled -and $_.UserType -eq 'Member' } |
Select-Object UserPrincipalName, @{n='LastSuccess'; e={$_.SignInActivity.LastSuccessfulSignInDateTime}} |
Sort-Object LastSuccess
How DoubleCheck checks it
Once a day DoubleCheck reads every user with its last successful sign-in from Microsoft Graph. A member without a successful sign-in for 90 days counts as inactive; you choose the number of days, from 30 to 365.
An account that never signed in only counts once it is older than that, so a new colleague is not reported before their first day.
One inactive user puts the check in warning, more than five in error. The check page lists them, longest idle first, and the alert names them.
An account that is meant to stay unused, such as an emergency account, can be excluded on the check page: it stays on the list but no longer counts.
- Measures
- The users of your tenant with their sign-in activity from Microsoft Graph (
/userswithsignInActivity): per enabled member the last successful sign-in. Guests and disabled accounts are left out. - Runs
- Once a day by default
- Status
-
- Lower is better.
- Warning when the number of inactive users is above 0 users (default advice).
- Error when the number of inactive users is above 5 users (default advice).
- You can change the levels per check.
- What you need
-
- An app registration in your tenant with a client secret.
- Microsoft Graph application permissions
User.Read.AllandAuditLog.Read.All, with admin consent. Read only. - Microsoft Entra ID P1 or P2 (for example in Microsoft 365 Business Premium, E3 or E5).
Frequently asked questions
Which permissions and licence does DoubleCheck need?
The Microsoft Graph application permissions User.Read.All and AuditLog.Read.All, approved by a Global Administrator or Privileged Role Administrator, and Microsoft Entra ID P1 or P2 in the tenant. Without the licence the check reports a licence error.
Are shared mailboxes and guests counted?
No. Guests are left out, and shared mailboxes have sign-in blocked by default, so they are disabled accounts and not counted.
What does "no sign-in recorded" mean?
Microsoft keeps the last successful sign-in since December 2023. An account without one has not signed in successfully since then.
Does DoubleCheck disable accounts?
No. It only reads. Disabling or removing an account is something you do in the admin center.
How are my credentials stored?
The tenant ID, application ID and client secret are kept in a dedicated, encrypted secrets vault, separate from the DoubleCheck database. Access to it is restricted to DoubleCheck's own services under strict access policies.
Start monitoring with DoubleCheck
Start with €5 of free credit, no credit card required. Alerts by email, SMS, Slack, Microsoft Teams or Discord.