Detained witnesses and persons held in custody awaiting arraignment or trial may not be restricted in their activities to any extent greater than required to maintain order and security and to assure appearance at arraignment or trial. Witnesses and pretrial detainees shall not be required to do labor other than keeping their living areas clean nor shall they be required to participate in correctional facility programs.
N.D.C.C. § 12-44.1-10