View and unblock users that are blocked by MFA using Powershell

Occasional Contributor

How can I view and unblock uses that have become blocked using MFA in Powershell

The following


Provides a listing of uses that have become blocked using MFA. In my case, most of the uses listed are a consequence of badly managed MFA registration. But what I really need is to be able to view the listing in Powershell, and potentially unblock the user in Powershell. If unblocking is not possible then viewing would be a start. Perhaps a REST call to the GRAPH API? Anything would help..





6 Replies

I'm not aware of any way to do this programmatically, but others might prove me wrong :)


Did you ever find a solution for this ?  Am needing the same myself.


Actually partially yes..

This is the rest call to find the blocked users:
$filters= "activityDisplayName eq 'Fraud reported - user is blocked for MFA'"
$uri = "$($filters)"

Hello, can i have more information regarding your last message ?
Thanks a lot