No board, commission, or any public officer or employee of the state or of any district, county, city and county, or city is liable for any damage or injury to any person resulting from the publication of any reports, records, prints, or photographs of or concerning any person convicted of violation of any law relating to the use, sale, or possession of controlled substances, when such publication is to school authorities for use in instruction on the subject of controlled substances or to any person when used for the purpose of general education. However, the name of any person concerning whom any such reports, records, prints, or photographs are used shall be kept confidential and every reasonable effort shall be made to maintain as confidential any information which may tend to identify such person.
Ca. Gov. Code § 818.7