Microsoft 365 features that help users manage their subscriptions, account settings, and billing information.
Hello
A pleasure to help you.!!
Having the confirmation that you work or know how to work using the PowerShell Module, I can recommend the following commands to identify users / aliases / distribuxion groups, duplicates.
In the following script you should only substitute in the variable $ Duplicateuser = "user who wants to validate their duplicity".
Start-transcript
$ Duplicateuser = "******@domain.com"
get-contact | where {$ _. WindowsEmailAddress -match "$ Duplicateuser"} | ft identity
get-msoluser -All | where {$ _. ProxyAddresses -match "$ Duplicateuser"} | select UserPrincipalName
Get-MsolGroup | where {$ _. ProxyAddresses -match "$ Duplicateuser"} | ft displayname, emailaddress
get-mailbox -Result unlimited | where {$ _. EmailAddresses -match "$ Duplicateuser"} | fl Name, RecipientType, EmailAddresses
get-DistributionGroup | where {$ _. EmailAddresses -match "$ Duplicateuser"} | fl Name, EmailAddresses
get-user -ResultSize Unlimited | where {$ _. WindowsEmailAddress -match "$ Duplicateuser"} | ft identity
Get-Recipient -ResultSize Unlimited | where {$ _. EmailAddresses -match "$ DuplicateUser"} | Select -Expand EmailAddresses Aliases
Get-msoluser | Where-Object {$ _. AlternateEmailAddresses -eq $ Duplicateuser}
Get-Mailbox -ResultSize unlimited | Where-Object {$ _. WindowsLiveID -eq $ Duplicateuser} | select userprincipalname, identity
Stop-transcript
I hope it is very helpful and can identify the user or user that may be duplicated in your organization.