PowerShell and Graph API support for managing Multi-Factor Authentication
Currently, the only available option to automate Azure MFA administration appears to be the MSOnline PowerShell module, released back in 2015.
The MSOnline module's Set-MsolUser and Get-MsolUser cmdlets allow administrators to enable and disable MFA on a user object using PowerShell scripts.
Alas, the MSOnline module itself does not support MFA when connecting to Azure AD. Administrators hoping to make use of the MSOnline module cannot have MFA enabled on their accounts. In short, for an admin to manage MFA with PowerShell, the admin's account can't be protected by MFA.
The new AzureAD and AzureADPreview PowerShell modules support connecting to Azure AD w/MFA-enabled accounts, but they do not expose any StrongAuthentication data for viewing or editing.
The new Graph API does not expose any StrongAuthentication data. The old Azure AD Graph API doesn't, either.
Please fix this, or provide an update as to when it will be fixed.
We’re really pleased to let you know that we’ve released the first authentication method APIs to public preview:
So far there are APIs for managing phone numbers and password resets. When phone numbers are set with the API, the user can use that number for MFA and SSPR (as allowed by your tenant’s policy).
The team is hard at work at building out APIs for all of the other authentication methods, and we’ll update the response here as they’re released.
Ron Houet commented
Come on Microsoft add this asap!
Ron Houet commented
Come on Microsoft, please add this possibility asap. Provisioning Phone and Alternate e-mail can't be used: Every user can read this info, isn't allowed with GDPR (AVG in the Netherlands)
Andy Sutton commented
Its ridiculous that this has been under review for almost two years without any updates from the product team.
LaValley, Eric commented
Still no updated on this planned feature? The last update was 3.5 years ago.
Tyler a Nadolski commented
Landon Roberts commented
Still waiting on an update
When when when?
Kalin Kutsarov commented
Any updates on this ?
So, Partners (CSP) must enforce MFA - but no MFA support for using the PS modules...??!
Left hand..meet, right hand. You work for the same org!
Any update on this?
Disappointing when msonline module keeps telling me its depreciated.
Surely its less work to maintain one module than two.
Get the missing functionality into AzureAD and only then can you retire msonline
any update on this? We want access to MFA to be more programmable.
Please add a way for us to update StrongAuthenticationUserDetails PhoneNumber via powershell. It will solve a LOT of problems for our university. Biggest one is upper administration doesn't want phone number showing up in Directory, so populating mobile phone is not an option. StrongAuthenticationUserDetails solves this problem. PLEASE ADD functionality soon! Thanks.
Ivan Fioravanti commented
Any news on this one?
Do we have any progress on updating "StrongAuthenticationUserDetails" though Powershell ?
Still no updates on this?
There is already a Post for this:
is there any hope this is being developed?