Skip to content
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

Sponsor

Get-MtUserAuthenticationMethodInfoByType

Returns DisplayName and IsMfa metadata about a specific user authentication method type

Get-MtUserAuthenticationMethodInfoByType [[-AuthenticationMethod] <PSObject>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]

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.

$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.

Section titled “Returns the DisplayName and IsMfa metadata for the authentication methods registered by the specified user.”

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

Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

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