Cal. Health & Safety Code § 25214.23
(a) For the purpose of administering and enforcing this article, an authorized representative of the department, upon obtaining consent or after obtaining an inspection warrant pursuant to Title 13 (commencing with Section 1822.50) of Part 3 of the Code of Civil Procedure, may, upon presenting appropriate credentials and at a reasonable time, do any of the following: