Microsoft 365 access check
Upload your user list and see which admins have no MFA, which active accounts nobody uses and which licences are paid for nothing.
Your data
A user export from Entra ID or the Microsoft 365 admin centre. At least the address column is needed. MFA, last sign-in, licences, roles and account type are used when present, and the page says what is missing.
The result appears here. Click “Use the sample data” to see an example.
Source:
What was found
How to make the export
Run the command below in PowerShell with the Microsoft Graph module. You sign in once in the browser, and it writes a CSV file you upload here. The command only reads: every permission it asks for is Read.All.
Install-Module Microsoft.Graph -Scope CurrentUser
Connect-MgGraph -Scopes "User.Read.All","AuditLog.Read.All","Directory.Read.All"
$roles = @{}
Get-MgDirectoryRole -All | ForEach-Object {
$role = $_.DisplayName
Get-MgDirectoryRoleMember -DirectoryRoleId $_.Id -All | ForEach-Object {
$roles[$_.Id] = (($roles[$_.Id] + @($role)) -join '; ')
}
}
$iso = { param($d) if ($d) { ([datetime]$d).ToString('yyyy-MM-dd') } }
Get-MgUser -All -Property Id,DisplayName,UserPrincipalName,UserType,AccountEnabled,SignInActivity,AssignedLicenses |
Select-Object DisplayName, UserPrincipalName, UserType, AccountEnabled,
@{n='lastSuccessfulSignInDateTime'; e={ & $iso $_.SignInActivity.LastSuccessfulSignInDateTime }},
@{n='lastSignInDateTime'; e={ & $iso $_.SignInActivity.LastSignInDateTime }},
@{n='assignedLicenses'; e={ ($_.AssignedLicenses.SkuId) -join '; ' }},
@{n='directoryRoles'; e={ $roles[$_.Id] }} |
Export-Csv users.csv -NoTypeInformation -Encoding UTF8
MFA status does not come from this command. Download it from the Microsoft Entra admin centre, under Users > All users > Authentication methods, as the registration report, and paste its column next to the others in the same file. The page always says what it could and could not check.
Why an export and not a connection to your tenant
A direct connection would need read access to your whole directory, granted to a site you have just opened. You make the export yourself and see what is in it.
Want the full audit?
The export shows the accounts. The ADOKS security audit also checks policies, sharing and logs, then applies the fixes.
Message on WhatsApp