under orders
under orders {adv. phr.}
Not out of one's own desire or one's own free will; obligatorily; not freely.
"So you were a Nazi prison guard? " the judge asked. "Yes, your Honor," the man answered, "but I was acting under orders and not because I wished to harm anyone."
Categories:
Source: A Dictionary of American Idioms