Azure-Samples / azure-mfa-authentication-method-analysis

Analyses Azure AD users to make recommendations on how to improve each user's MFA configuration. Can target a group by ObjectId or analyse all users in a tenant. Can add user-specific location information and produce a CSV report.
MIT License
46 stars 46 forks source link

Script forces old deprecated MSonline version #8

Open ryanedlund opened 10 months ago

ryanedlund commented 10 months ago

Can this script be updated to support the new Microsoft.Graph module instead of MSOnline [1.1.183.57]?

marcgarciamarti commented 4 months ago

Let me confirm I understand this correctly, because I can't get this to work.

This script is linked from the official documentation page: https://learn.microsoft.com/en-us/entra/identity/authentication/howto-mfa-getstarted#choose-authentication-methods-for-mfa but it relies on a phased out stack?

thanks

ryanedlund commented 4 months ago

Let me confirm I understand this correctly, because I can't get this to work.

This script is linked from the official documentation page: https://learn.microsoft.com/en-us/entra/identity/authentication/howto-mfa-getstarted#choose-authentication-methods-for-mfa but it relies on a phased out stack?

thanks

Yes, I believe they now have a native way to do this with the Graph module instead:

https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.reports/get-mgreportauthenticationmethoduserregistrationdetail?view=graph-powershell-1.0