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

Get-MgGroup — Basic Usage

Use Get-MgGroup for a standard administrative task.

Copy-ready commandGet-MgGroup — Basic Usage
Get-MgGroup -All

Requirements and permissions

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

Examples

Basic Usage

Use Get-MgGroup for a standard administrative task.

Get-MgGroup -All

Original command

List Microsoft Entra ID groups.

Get-MgGroup -All

Common errors

Command not found

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