Microsoft 365

Connect-MgGraph

SafeConnect to Graph

Connect-MgGraph -Scopes <scopes>

Connects Microsoft Graph PowerShell to manage Entra ID and more.

Examples

  • Connect-MgGraph -Scopes "User.Read.All"Connect with read scope

Syntax

Connect-MgGraph -Scopes "User.Read.All"

Before you run it

Connect only; needs the Microsoft.Graph module.

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