Answers.Body: <p>So a careful look at the civicrm_uf_match table revealed that some of the Joomla user IDs in the table were not the current user IDs of those users. Clearly the original Joomla users had been deleted and recreated with new IDs but the civicrm_uf-match table had not kept in sync with the changes. I'm not sure why - probably some past database problem that I've forgotten.  In Joomla installations, Civi only checks Joomla users for a linked Civi contact record when they interact with Civi as documented <a href="http://wiki.civicrm.org/confluence/pages/viewpage.action?pageId=47711133" rel="nofollow">here</a>.  So the matching of the Joomla user to the Civi contact was failing.  I manually changed the records in civicrm_uf_match to correct the Joomla user ID and all is now OK. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-08T22:22:01.633Z
Answers.LastActivityDate: 2015-10-08T22:22:01.633Z
Answers.UserDisplayName: StigMil
Body: <p>Civi 4.6.8 on J! 3.4.4</p>
  
  <p>I have synced J! to Civi contacts. J! users can log in to see additional menu options including view Civi contact dashboard and use a profile search form to see other contacts.  For some users - but not all - using these Civi functions creates a new Civi contact with their email address.  First, I can't see why a contact should be created at all simply by viewing; second, I don't understand why this happens for some users and not others. I think they all have the same permissions. Can you advise me where to look to troubleshoot?</p>
  
  <p>Thanks</p>
  
Tags: <joomla><user-account><cms-integration>
Title: Why do front end dashboard/profile views create a duplicate Civi contact?
ThreadText: # Why do front end dashboard/profile views create a duplicate Civi contact?
  
  (Asked by: username_0 on 2015-10-06)
  
  Civi 4.6.8 on J! 3.4.4
  
  I have synced J! to Civi contacts. J! users can log in to see additional menu options including view Civi contact dashboard and use a profile search form to see other contacts. For some users - but not all - using these Civi functions creates a new Civi contact with their email address. First, I can't see why a contact should be created at all simply by viewing; second, I don't understand why this happens for some users and not others. I think they all have the same permissions. Can you advise me where to look to troubleshoot?
  
  Thanks
  
  **Tags:** joomla, user-account, cms-integration
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2015-10-08. Score: 1
  
  So a careful look at the civicrm\_uf\_match table revealed that some of the Joomla user IDs in the table were not the current user IDs of those users. Clearly the original Joomla users had been deleted and recreated with new IDs but the civicrm\_uf-match table had not kept in sync with the changes. I'm not sure why - probably some past database problem that I've forgotten. In Joomla installations, Civi only checks Joomla users for a linked Civi contact record when they interact with Civi as documented [here](http://wiki.civicrm.org/confluence/pages/viewpage.action?pageId=47711133). So the matching of the Joomla user to the Civi contact was failing. I manually changed the records in civicrm\_uf\_match to correct the Joomla user ID and all is now OK.
  
  
  ---
  
  