I would like to programmatically set some of an M365 Tenant’s Authentication Method Policies with Powershell.
namely, those found here:
https://entra.microsoft.com/#view/Microsoft_AAD_IAM/AuthenticationMethodsMenuBlade/~/AdminAuthMethods
For example, I would like to Enable Microsoft Authenticator for All Users.
As well as optional settings like, "Show application name" or "Show geographic location"
This is found by navigating through:
entra.microsoft.com > Identity > Protection > Authentication Methods | Policies >
I can see where via documentation, you can drill through the tenant in Entra:
https://learn.microsoft.com/en-us/azure/active-directory/authentication/how-to-authentication-methods-manage
The closest thing I could find is:
Install-module Microsoft.Graph.Identity.Signins
Connect-MgGraph -Scopes UserAuthenticationMethod.ReadWrite.All
Select-MgProfile -Name beta
New-MgUserAuthenticationPhoneMethod -UserId [email protected]
Per:
https://learn.microsoft.com/en-us/azure/active-directory/authentication/howto-mfa-userdevicesettings
But this is at the user-level, and isn’t exactly what I’m looking to accomplish.
Thanks, in advance.
2
Answers
This is partway there:
I am very close….
using these commands, I can enable the Authentication Method, it enables them, but I cannot fully configure it:
That is… my output looks like this: