View and unblock users that are blocked by MFA using Powershell

%3CLINGO-SUB%20id%3D%22lingo-sub-1876464%22%20slang%3D%22en-US%22%3EView%20and%20unblock%20users%20that%20are%20blocked%20by%20MFA%20using%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1876464%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20can%20I%20view%20and%20unblock%20uses%20that%20have%20become%20blocked%20using%20MFA%20in%20Powershell%3C%2FP%3E%3CP%3EThe%20following%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Faad.portal.azure.com%2F%23blade%2FMicrosoft_AAD_IAM%2FMultifactorAuthenticationMenuBlade%2FBlockedUsers%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Faad.portal.azure.com%2F%23blade%2FMicrosoft_AAD_IAM%2FMultifactorAuthenticationMenuBlade%2FBlockedUsers%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EProvides%20a%20listing%20of%20uses%20that%20have%20become%20blocked%20using%20MFA.%20In%20my%20case%2C%20most%20of%20the%20uses%20listed%20are%20a%20consequence%20of%20badly%20managed%20MFA%20registration.%20But%20what%20I%20really%20need%20is%20to%20be%20able%20to%20view%20the%20listing%20in%20Powershell%2C%20and%20potentially%20unblock%20the%20user%20in%20Powershell.%20If%20unblocking%20is%20not%20possible%20then%20viewing%20would%20be%20a%20start.%20Perhaps%20a%20REST%20call%20to%20the%20GRAPH%20API%3F%20Anything%20would%20help..%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%2F%2FA%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1876464%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIdentity%20Management%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1877106%22%20slang%3D%22en-US%22%3ERe%3A%20View%20and%20unblock%20users%20that%20are%20blocked%20by%20MFA%20using%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1877106%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20not%20aware%20of%20any%20way%20to%20do%20this%20programmatically%2C%20but%20others%20might%20prove%20me%20wrong%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1878014%22%20slang%3D%22en-US%22%3ERe%3A%20View%20and%20unblock%20users%20that%20are%20blocked%20by%20MFA%20using%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1878014%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3BI%20hope%20they%20do!%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

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

The following 

 https://aad.portal.azure.com/#blade/Microsoft_AAD_IAM/MultifactorAuthenticationMenuBlade/BlockedUser...

 

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

 

//A

 

 

4 Replies

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

@Compulinx 

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

thanks