Primary immunodeficiencies (PIDs) are a heterogeneous group of monogenic inborn errors of immunity. The genetic causes of these diseases can be identified using whole exome sequencing (WES). Here, DNA samples from 106 patients with a clinical suspicion of PID were subjected to WES in order to test the diagnostic yield of this test in a highly consanguineous community. A likely genetic diagnosis was achieved in 70% of patients. Several factors were considered to possibly influence the diagnostic rate of WES among our cohort including early age, presence of consanguinity, family history suggestive of PID, the number of family members who underwent WES and the clinical phenotype of the patient. The highest diagnostic rate was in patients with combined immunodeficiency or with a syndrome. Notably, WES findings altered the clinical management in 39% (41/106) of patients in our cohort. Our findings support the use of WES as an important diagnostic tool in patients with suspected PID, especially in highly consanguineous communities.