Answers.Body: <p>First, on the wordpress side, check what email is listed for Alice in her wordpress user record. If it still has foo@myorg.org that might be the problem.</p>
  
  <p>Otherwise there's a civicrm_uf_match table in the database that is used to map between user accounts in the CMS (wordpress) and contacts in CiviCRM and it's partly based on email address. If you look in this table the email address might still be showing as connected to Alice's wordpress user id.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-10T13:28:49.880Z
Answers.Text: Thank you so much for the info! I'll get a chance to look into this later today and follow up with what I find.
Answers.UserDisplayName: Matt Woodward
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-11T23:52:13.740Z
Answers.Text: So oddly enough there is no account in WordPress with the email address in question, but I did update the "wrong" record in the civicrm_uf_match table with the correct uf_name and contact_id, so we'll see if that does the trick. I'll update again and mark this as the answer if that does the trick. Thanks again for the pointers!
Answers.UserDisplayName: Matt Woodward
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-10T00:44:59.500Z
Answers.LastActivityDate: 2019-09-10T00:44:59.500Z
Answers.UserDisplayName: Demerit
Body: <p>I'm on CiviCRM 5.16.2 on WordPress, and we have a situation where we have removed one of our organization's email addresses from one user account and added it to another account, but when the new user takes actions in CiviCRM it still shows the old user's name in various areas, one example being the "Changed By" name in the change log, but it also shows up incorrectly if the user enters a contribution, etc.</p>
  
  <p>To explain in a bit more concrete way:</p>
  
  <ol>
  <li>User Alice has email address foo@myorg.org</li>
  <li>foo@myorg.org email address is removed from Alice's record in CiviCRM</li>
  <li>foo@myorg.org email address is added to Bob's record in CiviCRM</li>
  <li>User Bob changes a record in CiviCRM</li>
  <li>Go to change log for the record, "Changed By" shows up as Alice, and even links to Alice's record if you click on the name in the change log</li>
  </ol>
  
  <p>I don't see a way to fix this in the admin interface and I've confirmed that the email in question is absolutely not still in the old user's record, and if you do a search for the email address the only hit that comes up is the new user, so I'm a bit flummoxed why it'd be behaving this way. Any ideas would be greatly appreciated. Thanks!</p>
  
Tags: <user-account><user>
Title: Change Log Shows Incorrect "Changed By" Name
ThreadText: # Change Log Shows Incorrect "Changed By" Name
  
  (Asked by: username_0 on 2019-09-10)
  
  I'm on CiviCRM 5.16.2 on WordPress, and we have a situation where we have removed one of our organization's email addresses from one user account and added it to another account, but when the new user takes actions in CiviCRM it still shows the old user's name in various areas, one example being the "Changed By" name in the change log, but it also shows up incorrectly if the user enters a contribution, etc.
  
  To explain in a bit more concrete way:
  
  1. User Alice has email address foo@myorg.org
  2. foo@myorg.org email address is removed from Alice's record in CiviCRM
  3. foo@myorg.org email address is added to Bob's record in CiviCRM
  4. User Bob changes a record in CiviCRM
  5. Go to change log for the record, "Changed By" shows up as Alice, and even links to Alice's record if you click on the name in the change log
  
  I don't see a way to fix this in the admin interface and I've confirmed that the email in question is absolutely not still in the old user's record, and if you do a search for the email address the only hit that comes up is the new user, so I'm a bit flummoxed why it'd be behaving this way. Any ideas would be greatly appreciated. Thanks!
  
  **Tags:** user-account, user
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-09-10. Score: 3
  
  First, on the wordpress side, check what email is listed for Alice in her wordpress user record. If it still has foo@myorg.org that might be the problem.
  
  Otherwise there's a civicrm\_uf\_match table in the database that is used to map between user accounts in the CMS (wordpress) and contacts in CiviCRM and it's partly based on email address. If you look in this table the email address might still be showing as connected to Alice's wordpress user id.
  
  > **Comments:**
  > **username_0**: Thank you so much for the info! I'll get a chance to look into this later today and follow up with what I find.  
  > **username_0**: So oddly enough there is no account in WordPress with the email address in question, but I did update the "wrong" record in the civicrm_uf_match table with the correct uf_name and contact_id, so we'll see if that does the trick. I'll update again and mark this as the answer if that does the trick. Thanks again for the pointers!  
  
  ---
  
  