One of our administrators mistakenly deleted three contacts while trying to remove them from a distribution list. I restored the three contacts from trash, but didn't notice that the three restored contacts now no longer showed a Drupal User ID next their Contact ID in the CiviCRM summary screen for the contact.

The users were unable to sign up for events (you have to be have a membership to access signup), and when we realized this, I found each User, clicked the Edit button, then I clicked the "LMGA Member Info" button in the upper right of the Drupal User Edit screen. Just opening that tab showed the CiviCRM info for this member, and then I found that the CiviCRM summary screen for this user now showed Contact ID/User ID. The link seemed to have been restored by Drupal accessing the CiviCRM tables.

I think all is well now, but I'm unsure of what actually happened and why. Can some kind soul please enlighten me?

Thanks, Rick

  • Oh, and software versions: Drupal 7.67 CiviCRM 5.13.4 Dec 5, 2019 at 17:06
  • Not a direct answer but maybe useful: You can re-sync all CMS users with CiviCRM contacts on this page: /civicrm/admin/synchUser?reset=1 Also, if you have restored the contact and the user signs in again, the contact and user should be connected again, provided CiviCRM's matching rule recognizes them.
    – Fabian
    Dec 6, 2019 at 8:22

1 Answer 1


It's on purpose that it removes the link to the user when you delete. It was added years ago here: https://github.com/civicrm/civicrm-svn/commit/3d9843c5912cb9d77e557b4a8cd4ef711f2cdcbb

and seems related to deduping https://issues.civicrm.org/jira/browse/CRM-6861

But yes Civi will reattach them once you do something that triggers the matching which is usually on email address, i.e. if the drupal user and the contact record have the same email.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.