(a) In the case of failure to eliminate an unlawful practice under this part through conference, conciliation, mediation, or persuasion, or in advance thereof if circumstances warrant, the director in his or her discretion may bring a civil action in the name of the department on behalf of the person claiming to be aggrieved. Prior to filing a civil action, the department shall require all parties to participate in mandatory dispute resolution in the department's internal dispute resolution division free of charge to the parties in an effort to resolve the dispute without litigation. In any civil action, the person claiming to be aggrieved shall be the real party in interest and shall have the right to participate as a party and be represented by his or her own counsel. The civil action shall be brought in any county in which unlawful practices are alleged to have been committed, in the county in which records relevant to the alleged unlawful practices are maintained and administered, or in the county in which the person claiming to be aggrieved would have worked or would have had access to public accommodation, but for the alleged unlawful practices. If the defendant is not found in any of these counties, the action may be brought within the county of the defendant's residence or principal office.
For any complaint treated by the director as a group or class complaint for purposes of investigation, conciliation, mediation, or civil action pursuant to Section 12961, a civil action shall be brought, if at all, within two years after the filing of the complaint. For any complaint alleging a violation of Section 51.7 of the Civil Code, a civil action shall be brought, if at all, within two years after the filing of the complaint. For all other complaints, a civil action shall be brought, if at all, within one year after the filing of a complaint. If the director determines, pursuant to Section 12961, that a complaint investigated as a group or class complaint under Section 12961 is to be treated as a group or class complaint for purposes of conciliation, mediation, or civil action as well, that determination shall be made and shall be communicated in writing within one year after the filing of the complaint to each person, employer, labor organization, employment agency, or public entity alleged in the complaint to have committed an unlawful practice.