Get-PnPManagementApiAccessToken
SYNOPSIS
Gets an access token for the Office 365 Management API
SYNTAX
Get-PnPManagementApiAccessToken -TenantId <String> -ClientId <String> -ClientSecret <String>
[<CommonParameters>]
DESCRIPTION
EXAMPLES
EXAMPLE 1
Get-PnPManagementApiAccessToken -TenantId $tenantId -ClientId $clientId -ClientSecret $clientSecret)
Retrieves access token for the Office 365 Management API
PARAMETERS
-ClientId
The App\Client ID of the app which gives you access to the Office 365 Management API
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ClientSecret
The Client Secret of the app which gives you access to the Office 365 Management API
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-TenantId
The Tenant ID to connect to the Office 365 Management API
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False