Microsoft 365

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
Verify the user's UsageLocationMissing UsageLocation is the classic blocker.
See the whole flow →

Related commands

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