Get-PnPAccessToken

Returns the current OAuth Access token

Syntax

Get-PnPAccessToken
   [-Decoded [<SwitchParameter>]]

Description

Gets the OAuth 2.0 Access Token to consume the Microsoft Graph API

Examples

------------------EXAMPLE 1------------------

Get-PnPAccessToken

Gets the OAuth 2.0 Access Token to consume the Microsoft Graph API

Optional Parameters

-Decoded

Returns the access token in a decoded manner

Type:SwitchParameter
Position:Named
Accept pipeline input:False
Accept wildcard characters:False