The UPN value is used for that, not the PrimarySMTPAddress. If the UPN is empty, then the samAccountName attribute is used, along with the default tenant.onmicrosoft.com domain.
Issue with AD Connect (user called CHECK@company.onmicrosoft.com)
Justin Verstijnen
201
Reputation points
Hey there,
We have a very strange problem with an on premise AD Domain Controller with AD Connect installed for sync to Azure/365.
Some users appear in 365/Exchange Online as CHECK@mathieu.company .onmicrosoft.com. If i take a look in the on premise Attribute editor of the user the proxyaddresses is set to SMTP:username@mathieu.company .onmicrosoft.com.
Even after i changed that and do a sync, the user is still called CHECK@mathieu.company .onmicrosoft.com and not the proxyaddress that i configured.
Is there anthing i am doing wrong?