Code of Civil Procedure § 804
CHAPTER 5. Actions for the Usurpation of an Office or Franchise
Whenever such action is brought, the Attorney General, in addition to the statement of the cause of action, may also set forth in the complaint the name of the person rightly entitled to the office, with a statement of his right thereto.