Deputy sheriffs in good faith carrying out, complying with, or attempting to comply with the directions of the sheriff, or performing any authorized service in connection therewith, shall have and possess all of the rights, privileges and immunities conferred upon law enforcement officers of the sheriff; provided that all such deputy sheriffs shall, at the time of or prior to their appointment, complete an appropriate course of training approved by the police training commission.
N.J.S. § 40A:9-117.3