When attempting to retrieve more than 500 accounts via the Get-MsolUserByStrongAuthentication cmdlet (using -all or -MaxResults) only the first 500 results are returned then the following error is displayed.
Using MSOnline module version 1.0.8362.1.
Get-MsolUserByStrongAuthentication : The method or operation is not implemented.
At line:35 char:7
+ $tenf=Get-MsolUserByStrongAuthentication -Requirements @($mfaEnforced) -MaxResul ...
+ CategoryInfo : NotSpecified: (Microsoft.Onlin...gAuthentication:GetUserByStrongAuthentication) [Get-MsolUserByStrongAuthentication], NotImplementedException
+ FullyQualifiedErrorId : System.NotImplementedException: The method or operation is not implemented.
at Microsoft.Online.Administration.Automation.MsolCmdlet.NavigateList(Byte listContext)
at Microsoft.Online.Administration.Automation.MsolCmdlet.ProcessList(SearchDefinition searchDefinition, Int32 maxResultsSize),Microsoft.Online.Administration.Automation.GetUserByStrongAuthentication
We will get this to the appropriate team to take a look.
Dave Lewis commented
2019 and it's still an issue.
Now that MFA is essential, this really should be fixed! (It's now 2018)
Disappointing they never fixed it. We had to fallback to retrieving all users with get-msoluser and checking the StrongAuthentication attributes.
Slow, but has been reliable.
Eric Weintraub commented
This is the year 2017 (two years after this was put in) and guess what? Still broken, will have to batch 499 users at a time. Thanks for that. -Enterprise Customer