under orders

[under orders] {adv. phr.} Not out of one's own desire or one's ownfree will; obligatorily; not freely.

"So you were a Nazi prisonguard? " the judge asked. "Yes, your Honor," the man answered, "but Iwas acting under orders and not because I wished to harm anyone."