Subdivision 16-18-26(5) shall not apply where the attorney general, state's attorney, or any public prosecutor or attorney for a public body permits the use of his name or office by an attorney chosen by any party in interest to sue, prosecute, defend, or participate in any action or proceeding authorized by law to be sued, prosecuted, or defended in the name of the state, the people, or of any public officer, board, or representative group of the same or any political subdivision or public district thereof.
SDCL 16-18-27