< Back
Get-AADIntAccessTokenForMSGraph
Post
NAME Get-AADIntAccessTokenForMSGraph
SYNOPSIS
Gets OAuth Access Token for Microsoft Graph
SYNTAX
Get-AADIntAccessTokenForMSGraph [-Credentials <PSCredential>] [<CommonParameters>]
Get-AADIntAccessTokenForMSGraph -SAMLToken <String> [<CommonParameters>]
Get-AADIntAccessTokenForMSGraph -KerberosTicket <String> -Domain <String> [<CommonParameters>]
DESCRIPTION
Gets OAuth Access Token for Microsoft Graph, which is used in Graph 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
<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-AADIntAccessTokenForMSGraph
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$cred=Get-Credential
Get-AADIntAccessTokenForMSGraph -Credentials $cred
RELATED LINKS
SYNOPSIS
Gets OAuth Access Token for Microsoft Graph
SYNTAX
Get-AADIntAccessTokenForMSGraph [-Credentials <PSCredential>] [<CommonParameters>]
Get-AADIntAccessTokenForMSGraph -SAMLToken <String> [<CommonParameters>]
Get-AADIntAccessTokenForMSGraph -KerberosTicket <String> -Domain <String> [<CommonParameters>]
DESCRIPTION
Gets OAuth Access Token for Microsoft Graph, which is used in Graph 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
<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-AADIntAccessTokenForMSGraph
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$cred=Get-Credential
Get-AADIntAccessTokenForMSGraph -Credentials $cred
RELATED LINKS