I need to create a Drupal view (CiviCRM contacts) displaying the staff of an organisation. The view has the relationship CiviCRM contact <-> Drupal user enabled. This seems to be required to be able to display the Drupal user images.

Now comes the tricky part: The Drupal site where the view is created is an offspring of a CiviCRM multi-site setup. This means staff members usually have a Drupal account for domain 1 (the central CiviCRM) and domain 2 (the multi-site offspring where the Drupal view lives). In the DB this means they have 2 records in civicrm_uf_match. Now if the relationship is enabled AND the user image field is included, the view displays those contacts twice. Removing the relationship results in losing the user images.

Any clues to a solution would be very welcome.

1 Answer 1


I don't have time to dig out an example but you should find you can add a Views Filter and specify the civi Domain. May depend on whether your View is starting with the Drupal User or with the CiviCRM Contact.

  • Thank you very much, this did the trick. It's also quite logical, but I must admit I didn't look for this filtering option. Commented Aug 17, 2015 at 8:19
  • Excellent - glad it was all the pointer that you needed.
    – petednz - fuzion
    Commented Aug 17, 2015 at 22:43

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.