title: Gathering MFA status of users on Azure
body: <p>I'm trying to pull a list of users from Azure and see if they have MFA enabled or disabled (for reporting reason) currently I'm using the following:</p>
  
  <pre><code>$cred = Get-Credential
  Connect-MsolService -Credential $cred 
  
  $users = Get-msoluser -All 
  $users | select DisplayName,@{N='Email';E={$_.UserPrincipalName}},@{N='StrongAuthenticationRequirements';E={($_.StrongAuthenticationRequirements.State)}} | Export-Csv -NoTypeInformation C:\csv.csv
  </code></pre>
  
  <p>This does connect as needed and pulls all user names and emails however <code>$_.StrongAuthenticationRequirements.State</code> returns null. Is there another way or am I overlooking something?</p>