Get-MtUserAuthenticationMethodInfoByType
SYNOPSISโ
Returns DisplayName and IsMfa metadata about a specific user authentication method type
SYNTAXโ
Get-MtUserAuthenticationMethodInfoByType [[-AuthenticationMethod] <PSObject>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTIONโ
The user authentication method returned by the /users/{id}/authentication/methods endpoint is missing key information such as the display name (as shown in the Portal) and if an auth method is a multi-factor authentication method or not.
This cmdlet returns the DisplayName and IsMfa metadata for a specific user authentication method type.
EXAMPLESโ
EXAMPLE 1โ
$userId = 'john@contoso.com'
$userAuthMethods = Invoke-MtGraphRequest -RelativeUri "users/$userId/authentication/methods"
$authMethod | Get-MtUserAuthenticationMethodInfoByType
Returns the DisplayName and IsMfa metadata for the authentication methods registered by the specified user.
PARAMETERSโ
-AuthenticationMethodโ
The type of authentication method to get metadata for
Type: PSObject
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-ProgressActionโ
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParametersโ
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTSโ
OUTPUTSโ
NOTESโ
RELATED LINKSโ
https://maester.dev/docs/commands/Get-MtUserAuthenticationMethodInfoByType