Whenever any action is brought against any sheriff, all deputies and employees of the sheriff employed under any civil service or merit system upon whose negligence, wilful or wrongful act, or other default the action is based are necessary parties defendant.