< Back

Get-PartnerCenterAccessToken

Sun Jan 12, 2020 3:12 pm

NAME Get-PartnerCenterAccessToken



SYNOPSIS

This function retrieves an access token from the Partner Center authentication servers.





SYNTAX

Get-PartnerCenterAccessToken -username <String> -password <SecureString> -applicationId <Guid> [<CommonParameters>]



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





DESCRIPTION

This function retrieves an access token from the Partner Center authentication servers.

This access token is used in Partner Center REST API calls.

Returns null if failed to retrieve the access token.





PARAMETERS

-username <String>

The username of the Partner Center admin account.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-password <SecureString>

The password of the Partner Center admin account.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-applicationId <Guid>

The Partner Center Native App Application Id.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-endpoint <Object>

The MSPComplete Endpoint containing the Partner Center admin credentials.



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





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



PS C:\\>Get-PartnerCenterAccessToken -Endpoint $Endpoint













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>$Endpoint | Get-PartnerCenterAccessToken













-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-PartnerCenterAccessToken -Username $username -Password $password -ApplicationId $applicationId















RELATED LINKS