Cal. Lab. Code § 3301
As used in this division, “employer” excludes the following:
(b) Any private, nonprofit organization while acting solely as the sponsor of a person who, as a condition of sentencing by a superior or municipal court, is performing services for the organization.
The exclusions of this section do not exclude any person or organization from the application of this division which is otherwise an employer for the purposes of this division.