Calif. Civil Code § 1940.3
Amended by A. B. 299
Effective date: January 1, 2018

A state, a city, country, district, or any other public agency is prohibited from compelling any landlord to ask questions about, compile, disclose, report a tenant’s immigration or citizenship status or refuse to provide accommodation based on  tenant’s immigration or citizenship status.

This does not prevent a landlord from complying with legal obligations under federal law, such as federal rental assistance programs, subpoenas, warrants, or other court orders.

Read the bill text.

Related article:

Landlords prohibited from taking action against tenants based on immigration status