If an attorney knowingly permits any person, not being his general law partner or a clerk in his office, to sue out any process or to prosecute or defend any action in his name, except as authorized by this section, such attorney, and every person who shall so use his name, is guilty of a misdemeanor.
Whenever an action or proceeding is authorized by law to be prosecuted or defended in the name of the people, or of any public officer, board of officers, or municipal corporation, on behalf of another party, the attorney-general, or district attorney, or attorney of such public officer or board or corporation may permit any proceeding therein, to be taken in his name by an attorney to be chosen by the party in interest.
N.Y. Jud. Law § 492