The immunity came after Pagliano's apperance before Congress. On March 2, 2016 the Justice Department announced that Pagliano would be granted immunity in exchange for his testimony regarding the email scandal. The request for immunity was initiated by the FBI.
Pagliano pleaded the 5th before Congress on September 10, 2015.