In any such proceeding involving a submitted or referred question, the court may upon good cause shown, either ex parte or otherwise, permit any officer or person desiring to be heard to intervene, either as a party plaintiff or party defendant.
SDCL 12-21-52