Answers.Body: <p>This is possible with SearchKit. I can't recall how to create a URL that lets me copy a SearchKit, but I'm attaching a screenshot and instructions.</p>
  <ul>
  <li>Search for <strong>Contacts</strong>.</li>
  <li>Add a <strong>With (required)</strong> to <strong>Contact Related Contacts</strong>.</li>
  <li>Add a <strong>With (required)</strong>.  Now, when you select the new entity, you'll see <em>Contact Related Contacts</em> listed twice - once under <em>Contacts</em> and once under <strong>Contact Related Contacts</strong>.  Select the one under <em>Contact Related Contacts</em>.</li>
  <li>In both cases, remove the condition that specifies the relationship type, since you want any relationship.</li>
  </ul>
  <p>So now, you have a search that's looking at three people:</p>
  <pre><code>Contact 1 &lt;==&gt; Contact 2 &lt;==&gt; Contact 3
  </code></pre>
  <p>When you search for Contact 1 and Contact 3, the search results for Contact 2 will be the person(s) that have a relationship with both.</p>
  <p>Once you have the basic search down, you can modify the columns returned, and add a display to hide all this from the users, so they can just select contacts 1 and 3 by the criteria of your choice (contact ID, names, etc.).</p>
  <p><a href="https://i.sstatic.net/8mJjO.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/8mJjO.png" alt="enter image description here" /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-07T00:04:14.850Z
Answers.Text: Great, that's perfect. Thanks!
Answers.UserDisplayName: not_even_close_to_baseline
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-07T20:14:27.673Z
Answers.Text: I have the search set up and have it set up in Formbuilder, but it doesn't appear in a way that can be used. Either on the Tab or as a block on the summary page. How do you get it to display to be used? I'm trying both search forms and cutom forms in formbuilder.
Answers.UserDisplayName: not_even_close_to_baseline
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-07T23:47:40.253Z
Answers.Text: Looking at the documentation here: https://docs.civicrm.org/user/en/latest/the-user-interface/search-kit/
Answers.UserDisplayName: not_even_close_to_baseline
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-07T23:52:33.220Z
Answers.Text: @Phelan I designed this around the idea that it would be a form.  Creating this as a tab or block on a contact is beyond the scope of this question, but you would a) use Form Builder, b) it should be a "Search Form", c) you would remove the "Where" statements.  Then you would d) select "Filter on Contact" from the Form Builder settings, e) on the "Table" field of the Form Builder, select "Display Name" as a field to add (the second one, not the first one!). d) will "pre-select" the current contact, and e) lets you search for the other contact.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-08T00:40:29.810Z
Answers.Text: Great, THANKS! So I'm assuming you are referring to Custom Forms in Formbuilder for the form approach?
Answers.UserDisplayName: not_even_close_to_baseline
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-08T20:41:03.470Z
Answers.Text: Or the forms option within Search Kit, or does it matter?   I prefer to use the forms approach. (I have the tabs approach working as you explained) On the Search Kit Search, the contact IDs under the "Where" statements correspond to the first and third contacts I'm assuming.  Which ones should be selected? Under Contact, Contact Related Contacts, or Contact Related Contacts-Contact Related Contacts. I don't think I'm choosing the correct ones, even though I've tried a number of variations.
Answers.UserDisplayName: not_even_close_to_baseline
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-03T18:46:45.983Z
Answers.LastActivityDate: 2022-01-03T18:46:45.983Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>We need to be able to see the common relationships between two contacts. Or essentially, who they both know and organizations they both have a relationship with.</p>
  <p>For example, between Contact A's relationships and Contact B's relationships, display those relationships they have in common.</p>
  <p>We would want this to be a tab or an on demand function if possible, like plugging in two contacts in a form to see the result.</p>
  <p>We use search kit and form builder for a number of things and I feel like the solution is right in front of me but just can't seem to design a search to do it.</p>
  <p>Also using Wordpress version of Civi.</p>
  
Tags: <relationships><searchkit>
Title: Search view that shows the mutual relationships between two contacts
ThreadText: # Search view that shows the mutual relationships between two contacts
  
  (Asked by: username_0 on 2022-01-02)
  
  We need to be able to see the common relationships between two contacts. Or essentially, who they both know and organizations they both have a relationship with.
  
  For example, between Contact A's relationships and Contact B's relationships, display those relationships they have in common.
  
  We would want this to be a tab or an on demand function if possible, like plugging in two contacts in a form to see the result.
  
  We use search kit and form builder for a number of things and I feel like the solution is right in front of me but just can't seem to design a search to do it.
  
  Also using Wordpress version of Civi.
  
  **Tags:** relationships, searchkit
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-01-03. Score: 2
  
  This is possible with SearchKit. I can't recall how to create a URL that lets me copy a SearchKit, but I'm attaching a screenshot and instructions.
  
  * Search for **Contacts**.
  * Add a **With (required)** to **Contact Related Contacts**.
  * Add a **With (required)**. Now, when you select the new entity, you'll see *Contact Related Contacts* listed twice - once under *Contacts* and once under **Contact Related Contacts**. Select the one under *Contact Related Contacts*.
  * In both cases, remove the condition that specifies the relationship type, since you want any relationship.
  
  So now, you have a search that's looking at three people:
  
  ```
  Contact 1 <==> Contact 2 <==> Contact 3
  
  ```
  
  When you search for Contact 1 and Contact 3, the search results for Contact 2 will be the person(s) that have a relationship with both.
  
  Once you have the basic search down, you can modify the columns returned, and add a display to hide all this from the users, so they can just select contacts 1 and 3 by the criteria of your choice (contact ID, names, etc.).
  
  [![enter image description here](https://i.sstatic.net/8mJjO.png)](https://i.sstatic.net/8mJjO.png)
  
  > **Comments:**
  > **username_0**: Great, that's perfect. Thanks!  
  > **username_0**: I have the search set up and have it set up in Formbuilder, but it doesn't appear in a way that can be used. Either on the Tab or as a block on the summary page. How do you get it to display to be used? I'm trying both search forms and cutom forms in formbuilder.  
  > **username_0**: Looking at the documentation here: https://docs.civicrm.org/user/en/latest/the-user-interface/search-kit/  
  > **username_1**: @Phelan I designed this around the idea that it would be a form.  Creating this as a tab or block on a contact is beyond the scope of this question, but you would a) use Form Builder, b) it should be a "Search Form", c) you would remove the "Where" statements.  Then you would d) select "Filter on Contact" from the Form Builder settings, e) on the "Table" field of the Form Builder, select "Display Name" as a field to add (the second one, not the first one!). d) will "pre-select" the current contact, and e) lets you search for the other contact.  
  > **username_0**: Great, THANKS! So I'm assuming you are referring to Custom Forms in Formbuilder for the form approach?  
  > **username_0**: Or the forms option within Search Kit, or does it matter?   I prefer to use the forms approach. (I have the tabs approach working as you explained) On the Search Kit Search, the contact IDs under the "Where" statements correspond to the first and third contacts I'm assuming.  Which ones should be selected? Under Contact, Contact Related Contacts, or Contact Related Contacts-Contact Related Contacts. I don't think I'm choosing the correct ones, even though I've tried a number of variations.  
  
  ---
  
  