Answers.Body: <p>You can create a search kit to find the contacts using  user id in (23,55,69,505,9949)</p>
  <pre><code>[
    [
      &quot;SavedSearch&quot;,
      &quot;save&quot;,
      {
        &quot;records&quot;: [
          {
            &quot;name&quot;: &quot;Joomla_User_Contacts&quot;,
            &quot;label&quot;: &quot;Joomla User Contacts&quot;,
            &quot;form_values&quot;: null,
            &quot;mapping_id&quot;: null,
            &quot;search_custom_id&quot;: null,
            &quot;api_entity&quot;: &quot;UFMatch&quot;,
            &quot;api_params&quot;: {
              &quot;version&quot;: 4,
              &quot;select&quot;: [
                &quot;uf_id&quot;,
                &quot;contact_id&quot;,
                &quot;contact_id.display_name&quot;
              ],
              &quot;orderBy&quot;: [],
              &quot;where&quot;: [],
              &quot;groupBy&quot;: [],
              &quot;join&quot;: [
                [
                  &quot;Contact AS UFMatch_Contact_contact_id_01&quot;,
                  &quot;INNER&quot;,
                  [
                    &quot;contact_id&quot;,
                    &quot;=&quot;,
                    &quot;UFMatch_Contact_contact_id_01.id&quot;
                  ]
                ]
              ],
              &quot;having&quot;: []
            },
            &quot;expires_date&quot;: null,
            &quot;description&quot;: null
          }
        ],
        &quot;match&quot;: [
          &quot;name&quot;
        ]
      }
    ]
  ]
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-12-14T17:15:30.197Z
Answers.LastActivityDate: 2022-12-14T17:15:30.197Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I need a way to find a list of contacts using a list of Joomla userIDs.
  Eg: I have a list of Joomla userids (23,55,69,505,9949) -- how can I use civiCRM search to find the related contact records for those userIDs?</p>
  
Tags: <advanced-search>
Title: Can I search for a contact using their Joomla UserID?
ThreadText: # Can I search for a contact using their Joomla UserID?
  
  (Asked by: username_0 on 2022-12-14)
  
  I need a way to find a list of contacts using a list of Joomla userIDs.
  Eg: I have a list of Joomla userids (23,55,69,505,9949) -- how can I use civiCRM search to find the related contact records for those userIDs?
  
  **Tags:** advanced-search
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-12-14. Score: 2
  
  You can create a search kit to find the contacts using  user id in (23,55,69,505,9949)
  [
    [
      "SavedSearch",
      "save",
      {
        "records": [
          {
            "name": "Joomla_User_Contacts",
            "label": "Joomla User Contacts",
            "form_values": null,
            "mapping_id": null,
            "search_custom_id": null,
            "api_entity": "UFMatch",
            "api_params": {
              "version": 4,
              "select": [
                "uf_id",
                "contact_id",
                "contact_id.display_name"
              ],
              "orderBy": [],
              "where": [],
              "groupBy": [],
              "join": [
                [
                  "Contact AS UFMatch_Contact_contact_id_01",
                  "INNER",
                  [
                    "contact_id",
                    "=",
                    "UFMatch_Contact_contact_id_01.id"
                  ]
                ]
              ],
              "having": []
            },
            "expires_date": null,
            "description": null
          }
        ],
        "match": [
          "name"
        ]
      }
    ]
  ]
  
  
  ---
  
  