Get-MgUser — Basic UsageIT technician command center
Microsoft Graph · Entra ID and Graph

Get-MgUser — Basic Usage

Use Get-MgUser for a standard administrative task.

Copy-ready commandGet-MgUser — Basic Usage
Get-MgUser -All -Property Id,DisplayName,UserPrincipalName,AccountEnabled

Requirements and permissions

Requirements
Microsoft.Graph PowerShell SDK
Permissions
Graph delegated or application permissions
Last reviewed
2026-07-31

Examples

Basic Usage

Use Get-MgUser for a standard administrative task.

Get-MgUser -All -Property Id,DisplayName,UserPrincipalName,AccountEnabled

Original command

List Microsoft Entra ID users.

Get-MgUser -All -Property Id,DisplayName,UserPrincipalName,AccountEnabled

Common errors

Command not found

Confirm Microsoft.Graph PowerShell SDK is installed and available in your current shell.