ran across different issue today. Client just did a email update - AD sync correctly brought in new email id to SD dbo.user and to SMP
dbo.Inv_Global_User_General_Details. However, the AD sync did not update dbo.user.EmailAddress.
Ran the 1st query to find issue. 2nd one to update fields
Query to show 1 example
select [ADLoginName], location, office,[PrimaryEmail],em.EmailAddress, ADLoginName
from dbo.[user]u left join dbo.UserEmailAddress em
on u.UserID = em.UserID where [ADLoginName] like '%test%'
select EmailAddress , [PrimaryEmail] FROM dbo.UserEmailAddress em
left join [ProcessManager].[dbo].[User] U on u.UserID = em.UserID
where EmailAddress != [PrimaryEmail]
Query to find out primary email in dbo.user does not match primary email on smp 7.1 server. Key for location call is the primary email
-- set EmailAddress = [PrimaryEmail]
select EmailAddress , [PrimaryEmail]
FROM dbo.UserEmailAddress em
left join [ProcessManager].[dbo].[User]U
on u.UserID = em.UserID
where [EmailAddress] like'%test.doc' and [PrimaryEmail] not like '%test.com'