If you use Office 365 and DirSync, a user’s primary email address can end up being username@domain.onmicrosoft.com if not setup correctly. To identify all users setup this way, connect to Office 365 powershell and run this command:
Get-mailbox -ResultSize unlimited | Select-Object primarysmtpaddress | ? {$_ -clike “*onmicrosoft*”}