Answers.Body: <p>The second part (tons of contacts with just the email address) is "normal", it's when civi realises that it doesn't have a contact mapping the drupal user and tries to create is with the limited info it has.</p>
  
  <p>As for the first one, it isn't something I've experienced. Do you have a standard drupal for the accounts or are you using extra modules related to the account managements (eg. LDAP integration)?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-14T14:37:25.500Z
Answers.Text: Relatively standard, I believe (I came on in the middle of this project). The only modules I can tell may be interacting is logintoboggan and possibly login destination. Maybe the ability to log in with either username or email is doing something unexpected. I did test logging in via email and username and checking the UIDs just around the one I logged into and it seemed to be okay, but i'm not sure how else I would test that out.
Answers.UserDisplayName: Eli Lisseck
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-14T07:59:38.050Z
Answers.LastActivityDate: 2016-01-14T07:59:38.050Z
Answers.UserDisplayName: Xavier
Body: <p>We are having an issue in Drupal 7.41 and civiCRM 4.6.4 (this was also happening to us with Drupal 7.34 and civiCRM 4.4) seemingly one at a time Drupal user accounts and CiviCRM accounts are becoming mis-linked to each other by one digit.</p>
  
  <p>I haven't been able to determine a pattern to the users this happens to, or the timing e.g. we might get one in two weeks or two in one day. We usually get notice of this when a member cannot see their member profile field in their drupal account page.</p>
  
  <p>For example, civicrm user tdavis@example.org has a link to their drupal account in their contact summary, pointing to UID 8190. When I go to the drupal user account for tdavis@example.org the UID is in fact 8189, and the link back to the civicrm contact summary simply says "profile not found".</p>
  
  <p>The other symptom is that there tend to be multiple (I've seen anywhere between 1 and 15) civicrm records that are just the email address for the account that is mis-linked (for example tdavis@example.org is the only information, no names or drupal uid or anything). These records seem to be created after the mis-linking. Possibly related to number of actions the person takes in drupal?</p>
  
  <p>Any ideas where to start to troubleshoot/replicate this issue or has it been seen before?</p>
  
  <p>I can fix it through the uf_match table or by merging the contact into a new record without transferring the drupal link and using 'sync users to contacts', but i'd like to squelch the issue if possible...</p>
  
Tags: <drupal><user-account>
Title: Troubleshooting some Drupal and CiviCRM accounts becoming mis-linked
ThreadText: # Troubleshooting some Drupal and CiviCRM accounts becoming mis-linked
  
  (Asked by: username_0 on 2016-01-13)
  
  We are having an issue in Drupal 7.41 and civiCRM 4.6.4 (this was also happening to us with Drupal 7.34 and civiCRM 4.4) seemingly one at a time Drupal user accounts and CiviCRM accounts are becoming mis-linked to each other by one digit.
  
  I haven't been able to determine a pattern to the users this happens to, or the timing e.g. we might get one in two weeks or two in one day. We usually get notice of this when a member cannot see their member profile field in their drupal account page.
  
  For example, civicrm user tdavis@example.org has a link to their drupal account in their contact summary, pointing to UID 8190. When I go to the drupal user account for tdavis@example.org the UID is in fact 8189, and the link back to the civicrm contact summary simply says "profile not found".
  
  The other symptom is that there tend to be multiple (I've seen anywhere between 1 and 15) civicrm records that are just the email address for the account that is mis-linked (for example tdavis@example.org is the only information, no names or drupal uid or anything). These records seem to be created after the mis-linking. Possibly related to number of actions the person takes in drupal?
  
  Any ideas where to start to troubleshoot/replicate this issue or has it been seen before?
  
  I can fix it through the uf\_match table or by merging the contact into a new record without transferring the drupal link and using 'sync users to contacts', but i'd like to squelch the issue if possible...
  
  **Tags:** drupal, user-account
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-01-14. Score: 1
  
  The second part (tons of contacts with just the email address) is "normal", it's when civi realises that it doesn't have a contact mapping the drupal user and tries to create is with the limited info it has.
  
  As for the first one, it isn't something I've experienced. Do you have a standard drupal for the accounts or are you using extra modules related to the account managements (eg. LDAP integration)?
  
  > **Comments:**
  > **username_0**: Relatively standard, I believe (I came on in the middle of this project). The only modules I can tell may be interacting is logintoboggan and possibly login destination. Maybe the ability to log in with either username or email is doing something unexpected. I did test logging in via email and username and checking the UIDs just around the one I logged into and it seemed to be okay, but i'm not sure how else I would test that out.  
  
  ---
  
  