Table of contents
TOC
Collapse the table of content
Expand the table of content

Connect-PnPMicrosoftGraph

Bert Jansen|Last Updated: 2/20/2017
|
1 Contributor

Uses the Microsoft Authentication Library (Preview) to connect to Azure AD and to get an OAuth 2.0 Access Token to consume the Microsoft Graph API

Syntax

Connect-PnPMicrosoftGraph -Scopes <String[]>

Parameters

ParameterTypeRequiredDescription
ScopesString[]TrueThe array of permission scopes for the Microsoft Graph API.

Examples

Example 1

PS:> Connect-PnPMicrosoftGraph -Scopes $arrayOfScopes

Connects to Azure AD and gets and OAuth 2.0 Access Token to consume the Microsoft Graph API including the declared permission scopes. The available permission scopes are defined at the following URL: https://graph.microsoft.io/en-us/docs/authorization/permission_scopes

© 2017 Microsoft