Here we provide a detailed, step-by-step protocol for CRISPR/Cas9-based genome engineering of primary human B cells for gene knockout (KO) and knock-in (KI) to study biological functions of genes in B cells and the development of B-cell therapeutics.