How to retrieve the MFA status with a Disabled User with Microsoft GraphAPI

Alex You 0 Reputation points

We are using PowerShell to query a group of users.

$user = Get-MgReportCredentialUserRegistrationDetail -All | Where-Object -Property UserPrincipalName -eq $UPN

It can get us user, which is not a disabled user, AuthMethods. But for Disabled users, we want to log it for audit purpose. This returned us a blank string.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
9,927 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
18,603 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 90,631 Reputation points MVP