Skip to main content

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 = '[email protected]'
$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

https://maester.dev/docs/commands/Get-MtUserAuthenticationMethodInfoByType