Get-MgUser
SafeInspect Entra users
Get-MgUser -UserId <upn>
Queries Entra ID (Azure AD) users via Graph.
Examples
Get-MgUser -Filter "accountEnabled eq false"List disabled users
Syntax
Get-MgUser [-UserId <upn>] [-Filter <q>]
Before you run it
Read-only (scope dependent).
Used when you see
License assignment fails
2
See the whole flow →Verify the user's UsageLocationMissing UsageLocation is the classic blocker.
Related commands
- Connect-MgGraphConnect to Graph
- Get-ADUserQuery AD users
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store