< Back

Get-AADIntAccessTokenForAADGraph

Fri Jan 10, 2020 5:37 pm

NAME Get-AADIntAccessTokenForAADGraph



SYNOPSIS

Gets OAuth Access Token for AAD Graph





SYNTAX

Get-AADIntAccessTokenForAADGraph [-Credentials <PSCredential>] [-Tenant <String>] [<CommonParameters>]



Get-AADIntAccessTokenForAADGraph -SAMLToken <String> [-Tenant <String>] [<CommonParameters>]



Get-AADIntAccessTokenForAADGraph -KerberosTicket <String> -Domain <String> [-Tenant <String>] [<CommonParameters>]





DESCRIPTION

Gets OAuth Access Token for AAD Graph, which is used for example in Provisioning API.

If credentials are not given, prompts for credentials (supports MFA).





PARAMETERS

-Credentials <PSCredential>

Credentials of the user. If not given, credentials are prompted.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SAMLToken <String>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-KerberosTicket <String>

Kerberos token of the user.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Domain <String>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Tenant <String>



Required? false

Position? named

Default value

Accept pipeline input? false

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



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



PS C:\\>Get-AADIntAccessTokenForAADGraph













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



PS C:\\>$cred=Get-Credential



PS C:\\>Get-AADIntAccessTokenForAADGraph -Credentials $cred











RELATED LINKS