< Back

Get-MicrosoftGraphAuthenticationToken

Sun Jan 12, 2020 3:08 pm

NAME Get-MicrosoftGraphAuthenticationToken



SYNOPSIS

This function contacts the Microsoft Graph authentication servers to obtain an authentication token.





SYNTAX

Get-MicrosoftGraphAuthenticationToken -applicationId <String> -clientSecret <String> -organizationName <String>

[<CommonParameters>]



Get-MicrosoftGraphAuthenticationToken -endpoint <Object> [<CommonParameters>]





DESCRIPTION





PARAMETERS

-applicationId <String>

The application ID of the Microsoft Graph web application.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-clientSecret <String>

The client secret of the Microsoft Graph web application.



Required? true

Pos

ition? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-organizationName <String>

The name of the organization in Office 365.

Example: if the onmicrosoft domain is contoso.onmicrosoft.com, the organization name is 'contoso'



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-endpoint <Object>

The MSPComplete endpoint containing the application ID and client secret in the credential.



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.String







RELATED LINKS