12Knocksinna / Office365itpros

Office 365 for IT Pros PowerShell examples
MIT License
1.32k stars 578 forks source link

Report-UserPasswordChanges.PS1 #114

Closed KaveSys closed 2 months ago

KaveSys commented 3 months ago

Hello, Using the script in subject, after some users doesn't show the state of MFA for the users, see screenshot: EmptyMFA

12Knocksinna commented 3 months ago

You'll have to do some debugging because I can't see the details of those users. Check an account that works and then check one that doesn't and maybe you'll see something that could be causing the problem.

KaveSys commented 3 months ago

I obviously remove the informations about the users that weren't populated. I mean that after about 500 people, the remaining were not populated. Seems that there are some issues regarding the paging.

If I see on Azure, these users are correctly setup and configure MFA.

12Knocksinna commented 3 months ago

I just updated the script to change the call to fetch authentication method data for users to get everything that the Graph can send. Try the change.

[array]$MFAData = Get-MgBetaReportAuthenticationMethodUserRegistrationDetail -All -PageSize 999