Copy-ready commandGet-MgUser
Get-MgUser -All -Property Id,DisplayName,UserPrincipalName,AccountEnabledRequirements and permissions
- Requirements
- Microsoft.Graph PowerShell SDK
- Permissions
- Graph delegated or application permissions
- Last reviewed
- 2026-07-31
Examples
Basic example
List Microsoft Entra ID users.
Get-MgUser -All -Property Id,DisplayName,UserPrincipalName,AccountEnabledCommon errors
Command not found
Confirm Microsoft.Graph PowerShell SDK is installed and available in your current shell.