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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store