If your job is harassing people and wasting their time, it doesn't make it okay because you're "just doing your job".
I'm just gonna go ahead and Godwin this particular subthread and say "I was just following orders" didn't hold any water at Nuremberg, and doesn't hold any now.