< Back
Get-MsalAccount
Post
NAME Get-MsalAccount
SYNOPSIS
Get user from token cache of application.
SYNTAX
Get-MsalAccount [-ClientApplication] <IClientApplicationBase> [-Username <String>] [<CommonParameters>]
Get-MsalAccount [-Accounts] <IAccount[]> [-Username <String>] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-ClientApplication <IClientApplicationBase>
Client application
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Accounts <IAccount[]>
Information of a single account.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Username <String>
The username in UserPrincipalName (UPN) format.
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:\\>$ClientApplication = Get-MsalClientApplication -ClientId '00000000-0000-0000-0000-000000000000'
PS C:\\>$ClientApplication | Get-MsalAccount
Get all accounts from client application cache.
RELATED LINKS
SYNOPSIS
Get user from token cache of application.
SYNTAX
Get-MsalAccount [-ClientApplication] <IClientApplicationBase> [-Username <String>] [<CommonParameters>]
Get-MsalAccount [-Accounts] <IAccount[]> [-Username <String>] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-ClientApplication <IClientApplicationBase>
Client application
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Accounts <IAccount[]>
Information of a single account.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Username <String>
The username in UserPrincipalName (UPN) format.
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:\\>$ClientApplication = Get-MsalClientApplication -ClientId '00000000-0000-0000-0000-000000000000'
PS C:\\>$ClientApplication | Get-MsalAccount
Get all accounts from client application cache.
RELATED LINKS