Answers.Body: <p>I'm not sure what is causing the contacts to share Drupal accounts, but to detach contacts from Drupal user accounts, you will need access to the civicrm_uf_match table in your CiviCRM database.</p>
  
  <p>See the question <a href="https://civicrm.stackexchange.com/questions/3878/how-to-disconnect-civi-contact-record-from-drupal-user">How to disconnect civi contact record from Drupal user?</a> and the answer I posted there on how to detach contacts.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-16T13:32:36.260Z
Answers.Text: Just wanna say that I'm extremely grateful for the API explorer right now.
Answers.UserDisplayName: Squishus Tyrannicus
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-16T15:59:55.403Z
Answers.Text: Curiosity here, how are you using the API explorer to fix it?
Answers.UserDisplayName: Allen Hutchison
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-16T16:43:48.253Z
Answers.Text: I'm using the API explorer using entity "UFMatch" and action "Get" to find an afflicted contact by ID. Make note of the UFMatchID, then use a "Delete" action to delete that row by corresponding ID. Seems to work.
Answers.UserDisplayName: Squishus Tyrannicus
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-16T18:02:55.337Z
Answers.Text: Brilliant!  Great solution.
Answers.UserDisplayName: Allen Hutchison
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-15T20:05:50.380Z
Answers.LastActivityDate: 2015-09-15T20:05:50.380Z
Answers.LastEditDate: 2017-04-13T12:53:13.207Z
Answers.UserDisplayName: Allen Hutchison
Body: <p>I've got a bit of a baffling issue and I'm not sure where to begin looking for fixes.</p>
  
  <p>I have begun to notice several instances where I have several contacts that share a single Drupal user account. These are contacts who are clearly not the same person and have no business sharing a single Drupal account.</p>
  
  <p>Edited to add:</p>
  
  <ul>
  <li>I'm using CiviCRM 4.6.8 and Drupal 7</li>
  <li>None of the contacts share the same email address</li>
  <li>Contacts are not synced via rules</li>
  <li>We have recently opened registrations for 2 very large events. The merge rule we're using is supposed to sync contacts on name and email address</li>
  <li>There is a profile used for site registrations. We collect name, email address, phone number, address, etc.</li>
  </ul>
  
  <p>Any idea what might cause this to happen?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-15T19:34:32.693Z
Comments.Text: are you saying that eg cid 12 and cid 15 are both linked to uid 5?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-15T19:43:12.110Z
Comments.Text: Yes, that exactly. There are several instances of of several CIDs sharing a single UID.
Comments.UserDisplayName: Squishus Tyrannicus
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-15T20:02:46.623Z
Comments.Text: Can you share a little more about your Drupal setup?  Do you have any modules enabled that sync users to contacts (via a rule or otherwise)?  Do you have a profile enabled that is used for Drupal registration?  Do you use the Webform integration module at all for sign ups of any kind?
Comments.UserDisplayName: Allen Hutchison
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-15T20:03:00.460Z
Comments.Text: Also, what version of Civi are you using?
Comments.UserDisplayName: Allen Hutchison
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-15T20:10:29.300Z
Comments.Text: Another thought too, have you recently used Synchronize Users to Contacts (under Administer > Users and Permissions)?
Comments.UserDisplayName: Allen Hutchison
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-15T20:32:32.980Z
Comments.Text: Any shared email addresses? (As email addresses appear in civicrm_uf_match.) Do you have logging enabled, as that might help show what funny business is happening in that table.
Comments.UserDisplayName: DaveFF
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-16T00:27:47.580Z
Comments.Text: yep i was going to ask if eg cid 12 and cid 15 have the same email or not. i don't think i have ever seen multiple contacts to a user, other than if you are using a multisite set up ie multiple drupals wired to a single civi - which i presume this is not
Comments.UserDisplayName: petednz - fuzion
Tags: <drupal><contacts>
Title: Why do some contacts share the same Drupal user?
ThreadText: # Why do some contacts share the same Drupal user?
  
  (Asked by: username_0 on 2015-09-15)
  
  I've got a bit of a baffling issue and I'm not sure where to begin looking for fixes.
  
  I have begun to notice several instances where I have several contacts that share a single Drupal user account. These are contacts who are clearly not the same person and have no business sharing a single Drupal account.
  
  Edited to add:
  
  * I'm using CiviCRM 4.6.8 and Drupal 7
  * None of the contacts share the same email address
  * Contacts are not synced via rules
  * We have recently opened registrations for 2 very large events. The merge rule we're using is supposed to sync contacts on name and email address
  * There is a profile used for site registrations. We collect name, email address, phone number, address, etc.
  
  Any idea what might cause this to happen?
  
  **Tags:** drupal, contacts
  
  > **Comments:**
  > **username_1**: are you saying that eg cid 12 and cid 15 are both linked to uid 5?  
  > **username_0**: Yes, that exactly. There are several instances of of several CIDs sharing a single UID.  
  > **username_2**: Can you share a little more about your Drupal setup?  Do you have any modules enabled that sync users to contacts (via a rule or otherwise)?  Do you have a profile enabled that is used for Drupal registration?  Do you use the Webform integration module at all for sign ups of any kind?  
  > **username_2**: Also, what version of Civi are you using?  
  > **username_2**: Another thought too, have you recently used Synchronize Users to Contacts (under Administer > Users and Permissions)?  
  > **username_3**: Any shared email addresses? (As email addresses appear in civicrm_uf_match.) Do you have logging enabled, as that might help show what funny business is happening in that table.  
  > **username_1**: yep i was going to ask if eg cid 12 and cid 15 have the same email or not. i don't think i have ever seen multiple contacts to a user, other than if you are using a multisite set up ie multiple drupals wired to a single civi - which i presume this is not  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2015-09-15. Score: 3
  
  I'm not sure what is causing the contacts to share Drupal accounts, but to detach contacts from Drupal user accounts, you will need access to the civicrm\_uf\_match table in your CiviCRM database.
  
  See the question [How to disconnect civi contact record from Drupal user?](https://civicrm.stackexchange.com/questions/3878/how-to-disconnect-civi-contact-record-from-drupal-user) and the answer I posted there on how to detach contacts.
  
  > **Comments:**
  > **username_0**: Just wanna say that I'm extremely grateful for the API explorer right now.  
  > **username_2**: Curiosity here, how are you using the API explorer to fix it?  
  > **username_0**: I'm using the API explorer using entity "UFMatch" and action "Get" to find an afflicted contact by ID. Make note of the UFMatchID, then use a "Delete" action to delete that row by corresponding ID. Seems to work.  
  > **username_2**: Brilliant!  Great solution.  
  
  ---
  
  