Cal. Gov't Code § 65961
Notwithstanding any other provision of law, except as provided in subdivisions (e) and (f), upon approval or conditional approval of a tentative map for a subdivision of single- or multiple-family residential units, or upon recordation of a parcel map for such a subdivision for which no tentative map was required, during the five-year period following recordation of the final map or parcel map for the subdivision, a city, county, or city and county shall not require as a condition to the issuance of any building permit or equivalent permit for such single- or multiple-family residential units, conformance with or the performance of any conditions that the city or county could have lawfully imposed as a condition to the previously approved tentative or parcel map. Nor shall a city, county, or city and county withhold or refuse to issue a building permit or equivalent permit for failure to conform with or perform any conditions that the city, county, or city and county could have lawfully imposed as a condition to the previously approved tentative or parcel map. However, the provisions of this section shall not prohibit a city, county, or city and county from doing any of the following:
(a) Imposing conditions or requirements upon the issuance of a building permit or equivalent permit which could have been lawfully imposed as a condition to the approval of a tentative or parcel map if the local agency finds it necessary to impose the condition or requirement for any of the following reasons:
(d) This section shall also apply to a city or city and county which incorporates on or after January 1, 1985, and which includes within its boundaries any areas included in the tentative or parcel map described in this section.
When the incorporation includes areas included in the tentative or parcel map described in this section, “a condition that the city could have lawfully imposed as a condition to the previously approved tentative or parcel map,” as used in this section, refers to conditions the county could have imposed had there been no incorporation.