High-grade irAEs correlated with compartmentalized immune dysregulation and IL-17/immunodeficiency pathway activation. Here, IL17A is linked to immunodeficiency disease.