Cal. Educ. Code § 38001
Persons employed and compensated as members of a police department of a school district, when appointed and duly sworn, are peace officers, for the purposes of carrying out their duties of employment pursuant to Section 830.32 of the Penal Code.