A person detained, committed, or transferred to a facility established and maintained pursuant to section 356A.1 or 356A.2, may further be released from such facility during necessary and reasonable hours, by court order, for the purposes stated in section 356.26. Such release and any wages earned shall be governed by the provisions of sections 356.27 through 356.35 except that during such time the released person shall not be in the legal custody of the sheriff; any wages earned shall be collected, managed, and dispensed by the person in charge of the facility and not the sheriff; and any wages earned shall first be applied to the reasonable cost of housing such person in the facility.
Iowa Code § 356A.4
2021 Acts, ch 80, §226
See also chapter 904, subchapter IX