When a bond or other instrument given to the state, county, school or other municipal corporation, or to any officer or person, is intended for the security of the public generally, or of particular individuals, action may be brought thereon, in the name of any person intended to be thus secured, who has sustained an injury in consequence of a breach thereof, except when otherwise provided.
Iowa. R. Civ. P. 1.202