Azure AD auth menthod used by users

Sam Cook 41 Reputation points
2020-05-28T18:17:19.763+00:00

Hello Everyone,

Im looking for a Powershell cmd or GUI methods to export a list of user by their auth method setup.
Since we allow all methods such as text, phone call, APP notification, Is there any way to tell which user is using which method ?

Thanks

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,624 questions
0 comments No comments
{count} votes

Accepted answer
  1. Rahul 226 Reputation points
    2020-05-28T20:07:12.88+00:00

    Hi SamCook,

    To get the all the user MFA registered details you need to use MSOL powershell Module.

    In your PowerShell run this commands:

    For All users:

    Connect-MsolService
    
    Get-MsolUser -All | Select-Object @{N='UserPrincipalName';E={$_.UserPrincipalName}},@{N='MFA Status';E={if ($_.StrongAuthenticationRequirements.State){$_.StrongAuthenticationRequirements.State} else {"Disabled"}}},@{N='MFA Methods';E={$_.StrongAuthenticationMethods.methodtype}} | Export-Csv -Path c:\MFA_Report.csv -NoTypeInformation
    

    For Single user:

    $user=Get-MsolUser -UserPrincipalName "testuser@xyz.com"
    $user.StrongAuthenticationMethods
    

    Let me know if this helps you.

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Vasil Michev 70,486 Reputation points MVP
    2020-05-28T19:53:19.02+00:00

    You can do this via the Get-MsolUser cmdlet, more specifically look at the StrongAuthenticationMethods property. Or use the Graph API: https://learn.microsoft.com/en-us/graph/api/resources/authenticationmethods-overview?view=graph-rest-beta