Rolling out strong authentication methods across your organisation in Microsoft Entra can be challenging. Several factors can complicate the process, such as users unwilling to use their personal phones, the cost of hardware tokens, or users being unintentionally left out of policy assignments.
What makes this even more difficult is the limited visibility Microsoft Entra provides to track your rollout progress. Without clear insights, identifying gaps and ensuring full adoption becomes a frustrating task.
To address this, I’ve created a free interactive report that offers a comprehensive view of authentication methods in Microsoft Entra. This tool provides a centralised dashboard to monitor user adoption, track progress, and quickly pinpoint areas that need attention, making the rollout process smoother and more efficient.
Page Contents
Features of the report
The interactive authentication methods report currently includes the following features:
- A view of all users and their registered authentication methods.Â
- Dynamic summary cards and progress bar.
- Filter by privileged users..
- Filter by passwordless capable users.
- Filter by users with strong authentication methods.
- Filter by users with weak with authentication methods only.
- Filter by users with strong and weak authentication methods.
- Hide disabled authentication methods from the report.
- Hide MFA capable users from the report.
- Hide External users from the report
- Hide AD Sync accounts from the report.
Running the Entra Authentication Methods report
The Invoke-EntraAuthReport script is available on the Microsoft PowerShell Gallery, making it easy to download and run. To install it, simply run the following command in PowerShell:
Install-Script -Name Invoke-EntraAuthReport On the backend, the script uses the Invoke-MgGraphRequest cmdlet to make all requests to Microsoft Graph. This means the only external module dependency is Microsoft.Graph.Authentication.
If you’re unsure how to install this module, check out my guide: How to Install the Microsoft Graph PowerShell Module.
To generate the report, simply specify the -OutPath parameter as shown below:
Invoke-EntraAuthReport -outpath C:\temp The script first checks whether you’ve already granted the required permissions. If not, it will prompt you to reconnect and provide consent. Once that’s done, the report will be generated, and the HTML file will automatically open in your default browser.
Report overview
Here’s an example of the report generated by the script:
Updating the script
Occasionally through my own work and community contributions to the public GitHub repository, updates to the script will be publish. Before you run the script, always ensure you are have the latest version installed. To check which version you have installed, run the following command:
Get-InstalledScript -Name Invoke-EntraAuthReport By comparing the result with the latest version on the PowerShell Gallery, you can determine if you have the latest version installed. If you do not have the latest version installed, update the script by running the following command:
Update-Script -Name Invoke-EntraAuthReport Latest release notes
v0.4
- Added a new -Limit parameter to limit the number of returned results.
- Added a new -skipGuest parameter to skip guest users.
- Added a new -skipGuestPhoneInfo parameter to skip the intensive request for mobile authentication methods.
- Added a new -openBrowser switch to open the report in browser automatically.
- Improved HTML generation execution time.
- Improved compatibility fixes.
- Added verbosity.


Is there a way to exclude guest accounts?
Not currently, but I understand this may impact the report for guest account without MFA during execution. Of-course you can filter them one the report is produced.
exclusion of guests would be super helpful as we have a LOT of guest accounts in our tenant.
Hi I get the below when running: Install-Script -Name Invoke-EntraAuthReport
PackageManagement\Install-Package : The specified script file ‘C:\Users\MODAdministrator\AppData\Local\Temp\478443444\Invoke-EntraAuthReport\Invoke-EntraAuthReport.ps1’ has parse errors, try
again after fixing the parse errors.
Try in PowerShell 7 🙂
I have run this on a tenant with close on to 7000 users but the report only comes back with 1050 as the total users.
Am i missing something here?
Check the latest version, this should be fixed now!
Hi
Thanks for this report. I do have a couple of issues. It looks like it errors out for som guest users.
It also does not pickup on Yubii Keys/FIDO2.
Unfortunately, that is a limitation of the UserRegistrationDetails report in Entra. I have reported it to the product team.
Hi Daniel,
Great tool you created.
Could you please help me out, I only get a total of 1050 users but I have much more in my tenant.
Thanks in advance for your help
This should be fixed now 🙂
This report is great, one thing I observed and that is there looks to be a cap on the results where the max it will give is 1080. I do not know if this is a throttling thing or a MgGraph limit marker but it would be great if the report could get all users in the tenant and not hit the limit.
This should be fixed now 🙂
Hi Daniel, excellent script. I’ve got a sea of red ‘x’s for most of my test identities. Just wondering if you could perhaps make the output less busier, and just highlight the green ticks? Or make the green ticks more easier to notice. Just a thought.
Really good script though. Great work.
Thanks for the feedback! Not sure what is best.. What if I made the x’s much smaller?
Great job! When viewing the report, the number of users displayed seems limited.
Is there a limit to the number of users?
Try the latest version 🙂
if i got more than 100 users how to get that report?
This will work fine with 100+ users
Hi
Report is great and layout too, but it’s not reporting everybody on my side. We have a 250 member in our entra and a bit more than 2000 guest. When i run the report it include both and stop at 1155 each time. Don’t see why in the script it stop. waybe to add a param to select the user type(guest vs member?)
I need to make a small adjustment to the script, although, if you download the latest version, this should be fixed for you!
Hello Daniel,
Useful script, but it seems like it is putting Fido keys as devicebound passkeys instead. not a massive issue from my end but maybe a small bug somewhere? unless I am doing something wrong
Can the script be modified to pull from a group, rather then the top 20000?
Thanks for the feedback, I’ve added that to my list of things to develop!
The used link for “How to Install the Microsoft Graph PowerShell Module” is referring to this page. Could this be corrected ?
Thanks Stefan, I have updated the link 🙂
Hello, how can i remove credential in session?
Because I would like run this script in other Tenant but credential remains in cache.
Thanks,
Matteo
HI Matteo,
Just run Disconnect-MgGraph, then run the script again!
I get this error when installing the script:
PackageManagement\Install-Package : The specified script file
‘C:\Users\admbps\AppData\Local\Temp\77223704\Invoke-EntraAuthReport.0.3.1\Invoke-EntraAuthReport.ps1’ has parse
errors, try again after fixing the parse errors.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:10044 char:34
+ … talledPackages = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (System.Object[]:String) [Install-Package], Exception
+ FullyQualifiedErrorId : ScriptParseError,Test-ScriptFileInfo,Microsoft.PowerShell.PackageManagement.Cmdlets.Inst
allPackage
Make sure you use PowerShell 7 🙂
Indeed, thank you!
Any chance a progress bar of sorts can be added? Just to know that it’s doing something. When I try to export a report it sits there, not sure if it’s doing something or not.
This report takes quite a while to complete in my environment. I would suggest modifying your foreach statements to improve performance and memory usage.
Your foreach statements are written as such:
foreach ($item in $items) { $result += $item}
This re-creates your array in memory ($result) each time. You will see much greater speed performance by writing it like this:
$result = foreach ($item in $items) { $item }
Someone describes it here https://janabaldszun.de/optimizing-foreach-avoiding-common-pitfalls-in-powershell/
I had a script taking 3-4 hours and changing it to this method among other things improved to about 10 minutes.
Secondly, you should look at this function:
$row = [array]::indexof($items.id, $item.id)
It is way faster than a Where-Object statement as this methods uses an index on the array. The results is the array “row” number which you then use later like this $items[$row].ImportantValue. When working with very large arrays this also radically improves performance. The search is case sensitive, but using a foreach as above to update all the ID’s to be lowercase is very efficient.
This article discusses the indexof function.
https://www.sharepointdiary.com/2021/05/indexof-method-in-powershell.html
Thank you Leon! I’m going to make improvements to the script. Keep an eye on my LinkedIn page for the next release 🙂
Does this support External Auth. Methods? EAM
Hey Ray, not yet! You cannot get EAM methods via Graph.. hopefully soon!
Hello, Daniel!
How about 20000+ users?
My org contains 40000+ users )
This should work for any amount, the HTML file may just be quite large..
Great job! I wish I could filter by disabled users and perhaps even see the last successful sign-in time.
You can get that on my licensing report > https://ourcloudnetwork.com/create-a-free-interactive-license-usage-report-for-microsoft-365/
I mean I would like to use your script to retrieve Entra Authentication methods report but also filter out disabled users.
In real world I don’t care about the authentication methods for disabled users.
I mean I would like to use your script to retrieve Entra Authentication methods report but also filter out disabled users.
In real world I don’t care about the authentication methods for disabled users.
Hi,
Is it possible to know what is the lowest role to assign to the user that I can use to run this script ?
Does it must be a global admin ?
Thank you!
Global Admin is required to perform the permission consent, otherwise I’m not sure on the Entra role requirements, may take a little trial and error 🙂
Today I had to add RoleManagement.Read.Directory to get the script working.
Thanks Philip, yes that is needed to identify the privileged users 🙂
Once installed I can’t use the “Invoke-EntraAuthReport -outpath C:\temp” command; If I browse to the local directory where the script is installed it will run…. I’ve tested this is on a small tenant and the report is great; But on a larger tenant I get a number of errors and it won’t complete.
Can you share an example error (removing any PII)? I think it may be due to guest accounts, which I will look to fix.
When I run in PS7 I run:
invoke-EntraAuthReport -outpath C:\Common\Clients\xxx\ -skipGuest -skipguestphoneinfo
I get the error back:
invoke-EntraAuthReport: The term ‘invoke-EntraAuthReport’ is not recognized as a name of a cmdlet, function, script file, or executable program.
So I browse to local directory and run the PS1; I also think this maybe becuase you need the “Beta” module installed… currently not installed and just checking if this is a requirement no listed.
Hey, no this only relies on Microsoft.Graph.Authentication, this sounds like a local issue. Have you closed and re-opened PowerShell?
Is there a way to run this under the context of a Service Principal / App context? I have attempted to use connect-mggraph prior to running, validated with get-mgcontext, but when I run it attempts to run under my user context, which doesn’t have the permissions.
I’ll add that 🙂
NIce one, thanks.
I would love to be able to filter :
Active users only
Licensed users Only
Great ideas! I’ll add that to my list of things to add 🙂
We have gone through a load of users and added MFA phone numbers and set it as the default method however, running it again hasnt picked up on the fact those accounts have Voice MFA against them.
Is there a time period for those changes to be picked up when re-running the report?
Hey! yes this uses the report API for speed, which means there is a slight delay 🙂
Hey there, great work. Any chance you add an parameter to just generate an xml, json or csv file? Would be great!
Good idea, I can add that to the list!
None of the interactive features works for me in the finished report. It does look very nice which is fantastic, but I would like to use the toggles, search, and export to CSV.
Nothing happens when I try and press the export button or any of the options like “Privileged User”. Nothing changes when I type in the search bar or press enter.
Hey Matt, it works for me an many others, what browser are you using where have you saved the file before opening?
I have this issue on Edge, Chrome, or Firefox. I am saving the file in C:\Users\”User”\Desktop.
So my test tenant has 0 users that are passwordless. Under the comment of // Initialize counters for dynamic updates I had to make a change in the HTML file for the report to work in the browser. I manually added the 0 like below and it works just fine.
let passwordlessUsers = 0;
Ahh cool thanks for that! Let me make an update to the script 🙂
Hello,
Anyway to get more than 14000 entries? I have around 40k users in our tenant.
thank you and great work!
Hey Ryan,
I’ll look at collecting more lines from the reporting API. At the moment it is set to 20,000, but I’ll need to modify the HTML to accommodate for the vast amount of users!
Cheers
Dan
Thank you very much for your great work. Could you add a parameter to generate an additional file in a data format such as JSON or CSV in your next update? This would allow us to implement it into one of our monitoring workflows.
Is it possible to add MSP-support so we can extract the information for all companies within partnercenter through GDAP?
Hey, this will not support GDAP, but you can use a multi-tenant app registration that your customers consent to 🙂