Hi Felix thank you for reaching out to the community team.
We can get this information by using the "get-azureaduser" powershell command.
The following script will create a csv in C:\temp\output.csv. Please change this to the path and filename you want.
Import-Module AzureAD
Connect-AzureAD
Get-AzureADUser -All $true | Export-Csv -Path "C:\temp\output.csv" -NoTypeInformation
Let me know if this helps by accepting this answer
Let me know if this helps by accepting this answer