830.1.
(a) A sheriff, undersheriff, or deputy sheriff, employed in that capacity, of a county, a chief of police of a city or chief, director, or chief executive officer of a consolidated municipal public safety agency that performs police functions, a police officer, employed in that capacity and appointed by the chief of police or chief, director, or chief executive of a public safety agency, of a city, a chief of police, or police officer of a district, including police officers of the San Diego Unified Port District Harbor Police, authorized by statute to maintain a police department, a marshal or deputy marshal of a superior court or county, a port warden or port police officer of the Harbor Department of the City of Los Angeles, or an inspector or
investigator employed in that capacity in the office of a district attorney, is a peace officer. The authority of these peace officers extends to any place in the state, as follows:(b) The Attorney General and special agents and investigators of the Department of Justice are peace officers, and those assistant chiefs, deputy chiefs, chiefs, deputy directors, and division directors designated as peace officers by the Attorney General are peace officers. The authority of these peace officers extends to any place in the state where a public offense has been committed or where there is probable cause to believe one has been committed.
(c) A
deputy sheriff of the County of Los Angeles, and a deputy sheriff of the Counties of Butte, Calaveras, Colusa, Del Norte, Glenn, Humboldt, Imperial, Inyo, Kern, Kings, Lake, Lassen, Mariposa, Mendocino, Mono, Plumas, Riverside, San Benito, San Diego, San Luis Obispo, San Mateo, Santa Barbara, Santa Clara, Shasta, Siskiyou, Solano, Sonoma, Stanislaus, Sutter, Tehama, Trinity, Tulare, Tuolumne, and Yuba who is employed to perform duties exclusively or initially relating to custodial assignments with responsibilities for maintaining the operations of county custodial facilities, including the custody, care, supervision, security, movement, and transportation of inmates, is a peace officer whose authority extends to any place in the state only while engaged in the performance of the duties of the officer’s respective employment
and for the purpose of carrying out the primary function of employment relating to the officer’s custodial assignments, or when performing other law enforcement duties directed by the officer’s employing agency during a local state of emergency.