When an action shall be brought by the state's attorney by virtue of this chapter, on the relation or information of a person having an interest in the question, the name of such person shall be joined with the state as relator, and in every such case the state's attorney may require, as a condition for bringing such action, that satisfactory security shall be given to indemnify the state against costs and expenses to be incurred thereby.
SDCL 21-28-4