Not knowing can be dangerous if there are anthromorphic wolves about.
Charles Xavier: There are thousands of men on those ships! Good, honest, innocent men! They're just following orders! (Then expresses an Oh Crap face when he realizes what he just said)
Just Following Orders is a justification for morally questionable actions that a character may invoke when questioned about the rightness or necessity of such actions. This justification holds that the (bulk of the) responsibility for such actions falls upon those who make such decisions and give such orders within a (military) hierarchy; by extension, those who obey and act upon such orders cannot be held (entirely) accountable for their actions. Often invoked with the exact phrase "I was Just Following Orders." Also known as the "Nuremberg Defense", this is the Stock Phrase motto/mantra/defense of the Punch Clock Villain, as well as most bureaucrats (obstructive or otherwise), Mooks, and just about anyone during failures of nerve, nous, job security, heroic fortitude...
It seems justifiable if you put yourself in their shoes. If your life and/or your family's life was threatened if you disobeyed orders you knew to be morally reprehensible, what would you do? For reference, the concentration camps also housed those convicted of treason, and their families would be tainted by the obvious "bad blood". Many of those who used the Nuremberg Defense knew what was waiting for them whether they followed orders or not. One is legally trapped between the prospect of immediate punishment from national law, or possibly delayed punishment from an international court attempting to judge from a higher moral law.
Of course, the victims of atrocities are likely to be far less sympathetic to this view...
This trope is by now usually not played straight but instead ironically, sarcastically, or self-hatingly. Still, it's one of the tropes that cycles between Dead Horse Trope and Undead Horse Trope, because the dilemma it rests on is close to unresolvable. Quoting the trope by name, though, is likely to be met with skepticism and ridicule, though. If the "crime" being excused is a relatively minor one, though, then an accuser invoking a parallel with Nuremberg may be seen as violating Godwin's Law.
Often also turns up in or close to other guises: My Country, Right or Wrong, people claiming "I Did What I Had to Do". Often prefixed by "Nothing Personal", usually said by an assassin. A Lawful Neutral may well end up saying this at some point depending on who he serves.
Not to be mistaken for Think Nothing of It or All a Part of the Job, catchphrases associated with the Humble Hero.
Nabuca: Never mind right or wrong! An order is an order!
Fullmetal Alchemist- Ed tries to invoke this when Riza tells him what happened in Ishval, saying that the Homunculi were really the ones behind it. Riza replies that, yes, the Homunculi may have started it, but they were the ones who carried it out, and that is something they will never forget
Monster began with this trope. Tenma was ordered to save a man of importance as he was about to perform surgery on an immigrant and did so, and only later found out that the immigrant had died and left a widow who angrily confronted him about it. Tenma is later presented a similar situation, and opts instead to save the young boy he was about to operate on over another man of importance. And oh, what a mistake that was.
In the beginning of the anime version of Black Cat this is the defense Train gives to justify attempting to murder Eve.
InuYasha Naraku orders Byakuya to allow Mouyoumaru to live. This forces Byakuya to interfere with Sesshoumaru's pursuit of Mouryoumaru. When Sesshoumaru turns on him, he says "don't hate me, I'm just doing my job" and then beats a hasty retreat.
Comics
Invoking this backfires spectacularly for one mook in Lucifer, where Lucifer must somehow find the red stone at the bottom of a cauldron of molten lead guarded by a Big Nameless Shinto Monster:
Lucifer: Fate's a slippery sort of concept, though, isn't it. I mean, most of the time it's just an excuse for doing what you want to do anyway." (Empties kettle of molten lead over Shinto Monster).
Big Nameless Shinto Monster: Nuuuh! It burns! It BURNS!
Lucifer: Well, that's what happens when you play with fire. Here we are. The red stone, I think you said."
Documentary
Gunner Palace:
SPC Devon Dixon: [feeling bad about killing] I'm not doin' the wrong thing, I'm Just Following Orders, so I'd rather it not be me. So, I had to, you know, I learned to live with it.
Fanfic
The Battlestar Galactica/Battletech crossover Hunted Tribes gives one of the most epic treatments of this trope ever. Clan Wolverine soldiers refuse to associate with crewmembers from the Pegasus, considering the ship and all who served under Admiral Cain disgraced for abandoning civilians to the Cylons. When someone tries to claim they were just following orders, the Wolverines state that people's conscience should have stopped them, and that they should have killed Admiral Cain for issuing the order in the first place. Roslin tries the I Did What I Had to Do-Defense, only to be told that the Wolverines have been in similar situations without ever compromising their morals, and that that excuse would have been good enough for any number of people, but NOT for them.
In Ever After, Danielle has ordered her servant Maurice to be released from slavery.
Cargomaster: I'm following orders here. It's my job to take these criminals and thieves to the coast.
The Crazies: The soldiers go on a killing spree against civilians because that's what they were told to do to contain the virus.
On a more positive note, in the remake the sheriff's deputy is revealed late in the movie to have caught the virus. Why didn't he go off the rails? Because the sheriff ordered him not to go crazy.
Sam Daniels: If you think I'm lying, drop the bomb. If you think I'm crazy, drop the bomb. But don't drop the bomb just because you're following orders!
In Tomorrow Never Dies, Bond has this conversation after subduing a, particularly sadistic, assassin who has just killed Paris Carver;
Used along with a healthy dose of Godwin's Law in Clerks. A man berates Dante in front of customers for selling cigarettes, accusing him of being just like the Nazis since he's "only following orders," and tells customers that they should buy Chewlies Gum instead (because selling a dangerous product to a willing consumer is just like gassing innocent people). The man is later revealed as a Chewlies Gum salesman.
A rather pathetic example appears in Aliens vs. Predator: Requiem after the military drop a nuclear bomb on the alien-infested town; a soldier says this after a survivor calls him out on it.
At least that would have been a redeemable Shout Out.
X-Men: First Class: When Erik is seconds away from throwing dozens of missiles back at the humans who fired them, Charles makes the mistake of trying to use this argument. Cue one major Oh Crap from him almost immediately afterwards, as he realises that as a Holocaust survivor, Erik is not going to take that very well.
Earlier on the film, some former Nazi's had also tried to use this excuse before Erik killed them.
Compliance is a dramatization of an actual crime where the staff of a fast food restaurant followed the increasing perverse orders of a voice of a phone claiming to be a police officer without anyone asking basic questions of why.
The submarine triller Crimson Tide features an interesting variation. The Captain wants to launch his nukes because the orders in hand say so. His Number Two points out that a second message may have been a repeat of those orders or a cancellation. Both men are opposing each other precisely because each believes he's Just Following Orders.
The court-martial in Breaker Morant hinges on whether or not the defendants were this when they killed prisoners of war. The movie is set in 1902, when the Nuremberg Defense was perfectly valid.
Folklore
According to one tale, a sick Gurkha was lying on a hospital bed, dying, so a British officer walked up to him and sternly told him 'don't die'. At that, the Gurkha recovered. After all, Gurkhas follow orders.
Carrot's affinity for subversions of this trope may also explain how he is the first (and arguably only) character in Feet of Clay to notice that the Golems rebel by following orders.
Played straight with the local watchmen from Bonk in The Fifth Elephant where the captain thereof tries to justify the things he's done to VIMES using this. Needless to say this is a futile effort, leading to the invoked aversion of this trope, where Vimes orders Detritus to kill the man, and Detritus, knowing what's up, telling him to stuff it (with all due respect). Vimes himself has always acted in the knowledge that he swore an oath which was about upholding the law and defending the citizens, and didn't say anything about obeying orders anywhere.
'It's not that I disagree with you,' said the angel, as they plodded across the grass. 'It's just that I'm not allowed to disobey. You know that.'
'Me too,' said Crowley.
Aziraphale gave him a sidelong glance. 'Oh, come now,' he said, 'you're a demon, after all.'
'Yeah. But my people are only in favour of disobedience in general terms. It's specific disobedience they come down on heavily.'
'Such as disobedience to themselves?'
'You've got it. You'd be amazed. Or perhaps you wouldn't be.'
Three hours of drowning their sorrows later, of course, Aziraphale puts it slightly more bluntly, if less coherently:
'All right. All right. I don't like it any more than you, but I told you. I can't disod- disoy - not do what I'm told. 'M'a'nangel.'
Ironically, near the end of the book it's Aziraphale who points out, while trying to convince Crowley not to leave the mortals to confront Satan alone, "Lots of people in history have only done their jobs, and look at the trouble they caused."
In the Star Wars Expanded Universe novel Death Star, Tenn Graneet, the head gunner on the Death Star, while gripped by the enormity of what he did, can't justify it in any way, even if justifications flick through his mind. Following orders to destroy an inhabited planet, even if refusing just would have meant they killed him and got a new gunner to do his job, is unforgivable to the rest of the galaxy. And to him.
He does, however, inadvertently save the Rebellion by not firing immediately after ordered. He says "Stand by" twice before Luke's torpedoes hit the reactor.
Since the Empire resembles Nazi Germany, sympathetic Imperials wrestle with this trope a lot in the Expanded Universe.
Non-military variation; The Grapes Of Wrath features an interlude with a bulldozer driver who is employed by the banks and landowners to bulldoze repossessed farms for development. One of the dispossessed farm-owners recognises him as the son of an acquaintance and demands to know how he can do this to his own people. The bulldozer driver replies that it's his job; he has a family to think of as well, and if he quit out of moral outrage all that would happen would be that the banks would get someone else to do his job and he and his family would end up starving as well. Sort of a Deconstruction of We Are Struggling Together, if you think about it.
Perhaps the most extreme version imaginable appears in the last book of Stephen King's The Dark Tower. One of the mooks at the Evil Overlord's multiverse-breaking facility blames the heroes for attacking him and his fellows, in reply to which she queries how exactly this compares to the moral status of their working to kill absolutely everyone everywhere. His answer? Go on, guess.
In the third book of The Underland Chronicles, Doctor Neveeve says this line while being arrested.
Ranga Sanga in the Belisarius Series both plays this straight and subverts it. He fights for the bad guys because of his feudal duties but doesn't commit atrocities for them and turns on them when they go too far.
Belisarius himself, goes out of his way to order his men not to commit Rape, Pillage, and Burn on random civilians and in fact harshly punishes those who do such things. Those are of course good orders.
In Bernhard Schlink's The Reader, Hanna is prosecuted as a war criminal when she is found to have been a concentration camp guard who oversaw a forced prisoner march. The guards were ordered not to lose any prisoners, and so locked them inside a church on an overnight stop. When the church caught fire, the guards chose to leave the doors chained rather than risk that any might escape, and all 300 prisoners died. When questioned about this, she points to her orders, and asks the judge naively, "What would you have done?"
Referenced in World War Z. A unit of the German army has been ordered to retreat to a more defensible location and abandon the civilians they have been defending to the zombies. Despite the fact that he understands the awful necessity of it -their position was in imminent danger of being overrun and to stay would be a futile gesture- the officer being interviewed is appalled that the theatre commander was capable of giving this order, for everyone who enlists in the German military has it impressed on them that their first and most important duty is to their conscience.
The officer is more upset because he later finds out that his superior, who issued the order, shot himself because he couldn't live with his own orders. He views it as moral cowardice, the worst offense possible. Closer to this trope is the US Military, which first abandons over 50% of the United State's land mass, leaving millions to fend for themselves, only to later come back and wage war with those who survive, as many of them are understandably pissed off and are trying to fight for independence.
Another WWZ example: When a rebellion of Russian soldiers is put down, they are forced to select one of their comrades out of every ten and stone them. With this hideous punishment in mind, as well as the guilt and shame of having carried out these orders rather than refuse and be shot for it, the survivors are too frightened to disobey any future orders, no matter how hideous.
'' We relinguished our freedom that day, and we were more than happy to see it go. We lived in true freedom that day, the freedom to point at someone else and say, "They told me to do it! Its their fault, not mine!" The freedom, God help us, to say "I was just following orders."
When one character is ordered to destroy a bridge with refugees still on it and can't bring himself to follow through, his commanding officer recognizes his dilemma and does it himself.
A variation occures in the "Dragon" play by Eugeny Shwartz.
Henrih: It's not my fault. They've taught me this way!
Lancelot: They've taught everyone. But why did you have become to the top student, you scum?!
Said by Marcello Clerici, the Villain Protagonist of the novel The Conformist which is set in Fascist Italy and ends on the night of Mussolini's fall from power, when his colleague Orlando wonders how they'll explain their role in the government.
In Harry Potter, some of the Death Eaters (after Voldemort's "death") used this in the most literal way possible - they claimed to have been under the Imperius curse. Most of them weren't.
Bothari in Vorkosigan Saga is a special example. He is so mentally ill that he can barely do anything else and it takes all his courage just to abstain from raping Cordelia at the command of a sadist. Bothari knows this and thus clings to the Vorkosigans because he thinks he can trust them to give good orders and that is the best he can do. He doesn't think following orders takes away responsibility so much as thinking he barely do anything else so he better find a Reasonable Authority Figure if he wants to be human.
A less complex example is Aral's regular lectures to graduates of the Imperial Service on what constitutes an illegal order.
Live-Action TV
In Buffy the Vampire Slayer, Xander chloroforms Dawn and kidnaps her under Buffy's orders. However, it turns out Dawn carries a tazer and doesn't care, so she tazes him and drives them back anyways.
Orac: I am obliged to do as you tell me, even though I know it to be wrong.
Kerr Avon: Only following orders? That's not very original, Orac.
In "Rumours of Death", Avon kidnaps a Federation Torture Technician in order to interrogate and then kill him:
Shrinker: Why me? I haven't done anything. I've only ever—
Tarrant: Oh, don't tell me, let me guess. You've only ever followed orders.
Shortly followed with this exchange:
Avon: Look, Cally, I know you don't want any part of this. All right, I'm not going to give you any part of it. You're out. This is mine. I'm doing it.
Cally: And what am I doing, Avon? Just following orders, like him?
Data: Captain, I wish to submit myself for disciplinary action. I have disobeyed a direct order from a superior officer. Although the result of my actions proved positive, the ends cannot justify the means.
Captain Picard: No, they can't. However, the claim "I was only following orders" has been used to justify too many tragedies in our history. Starfleet doesn't want officers who will blindly follow orders without analyzing the situation. Your actions were appropriate for the circumstances.
"The Pegasus":
Commander Riker: I wasn't a hero, and neither were you! What you did was wrong. And I was wrong to support you, but I was too young and too stupid to realize it! You were the captain, I was the ensign. I was Just Following Orders.
More or less the theme of the Star Trek: Deep Space Nine episode "Duet", where it is doubly subverted, first when a Cardassian officer gleefully refuses to claim it, and then at the end when it turns out that he's actually just a common soldier who is still tortured by his acquiescence in the atrocities ordered by his superiors, and has been impersonating a dead superior in hopes of shaming his fellow Cardassians.
Captain Janeway: I'm putting an end to your experiments, and you are hereby relieved of your command. You and your crew will be confined to quarters.
Captain Ransom: Please, show them leniency. They were only following my orders.
Captain Kathryn Janeway: Their mistake!
In The Thick of It, Hapless minister Hugh Abbot is about to introduce a new bill about special needs schooling, and gets uncomfortable around an aide who opposes it because he thinks the bill will fail his own child.
Hugh Abbot: Glenn, the special needs bill. With your particular interest, I... I can't do this.
Glenn Cullen: You know my views, you know inclusion is an illusion, it doesn't work.
Hugh: But you don't mind if I go ahead with it.
Glenn: Of course not, look - you're only following orders.
Hugh: Oh thanks. So you won't make me feel bad, except by comparing me to a concentration camp guard.
Glenn: No, that's right.
It continues in Series 3 with incompetent new press officer John Duggan:
"I'm Just Following Orders! Like a Nazi guard, only less gassy! [sheepish pause] You're not Jewish are you?"
Averted at least once in Babylon 5. Dr. Franklin is ordered to turn over his notes on Minbari anatomy so that the military can create a biological weapon. He refuses, stating that under military law he has no duty to obey an order if it would violate his conscience.
Not so averted. The military locks him up and tears his house and office apart looking for some remnant of those notes. He was just Genre Savvy enough to have destroyed them in advance, knowing in times of war, military law is "Do What We Say And Maybe We Won't Kill You."
Delenn raised a whole fleet without the permission of the Grey Council. So much for orders.
In the episode "Deathwalker", Sinclair uses this reason, but it is clear he is sickened by Earthdome's actions.
Played straight in Intersections in Real Time. Sheridan's interrogator never uses the exact words, but it's clear that it's how he reconciles what he's doing.
Sheridan beats this trope to death by actually seceding and later coming back to overthrow the regime-with the help of Minbari. His crew of course follows his orders presumably because he is a badass.
And then he resurrects it by not protesting a blanket pardon for the regime - in Season 5 there are numerous individuals flying starships who bombed civilian targets and slaughtered refugees.
And then it's twisted in a knot in "A Call To Arms": a whole crew of pardoned war criminals joins Sheridan out of guilt for their actions during the war, and ultimately makes a Heroic Sacrifice.
Word of advice, do not invoke this trope around the Doctor. It will only make him mad. For example, this exchange from "Bad Wolf":
Female Programmer: If you're not holding us hostage, then open the door and let us out. The staff are terrified!
The Doctor: That's the same staff who executes hundreds of contestants every day?
Female Programmer: That's not our fault. We're just doing our jobs.
The Doctor: And with that sentence, you just lost the right to even talk to me. Now back off!
An episode of JAG (season 9) involves a Marine who disobeyed an order to "treat everyone as hostile" during the invasion of Iraq, freezing when confronted with a 10-year-old kid, who then exposed his squad's position, leading to the deaths of two Marines. He's accused of dereliction of duty and the "duty to obey unlawful orders" is discussed. At a pre-trial hearing, the judge feels he isn't guilty of dereliction of duty, but there is a change for insubordination, which he pleads guilty to.
Used in V, by humans to justify working for the visitors. One woman is called out on this, being told that the same excuse was used at the Nuremberg Trials.
Invoked in an episode of CSI: Crime Scene Investigation: during a murder investigation, Catherine uncovers that while their main suspect isn't guilty of the crime, he is hiding his past as a sex offender (turns out he's really a decent guy that made a stupid mistake, and is trying to start his life over). Although cleared of the murder charge, the man's life is effectively ruined by the revelation. At the end of the episode he confronts Catherine angrily, and she replies "I was just doing my job." He denounces her as a "Blonde Nazi Bitch" and leaves.
Actually she does not, she goes completely overboard and personally crucifies him by explicitly telling his fiancee of his sex offender registration, who then tells his boss and is fire, and tries to make the evidence point him as the criminal. Many members of her team continuously point on this claiming how she is not listening to how his alaby checks out or the fact that one sarcastically comments how it is fun to watch how she is just making the evidence fit her theory. In the end it was her actions alone that destroyed his life.
Used in Rome, in a situation which actually turns out to be for the better.
Centurion Lucius Vorenus: Pullo, report to Princess Cleopatra and do whatever she tells you.
*Cue a prolonged bout of vigorous and noisy sex.*
Legionary Titus Pullo: Gods, that was something, let me tell you.
Pullo: Why? I was only obeying orders. Bloody good orders, too.
Annie Cartwright in Life On Mars uses this defence - not necessarily as an excuse but as an admission of complicity in the death of Billy Kemble - in this way in the penultimate episode of series 1.
Invoked in Episode 6 of Torchwood: Miracle Day when Gwen confronts Dr Patel about the incineration of 'Category One' patients. Dr Patel begins to protest, and Gwen interrupts her.
Gwen: Don't you dare. Don't you dare look at me and tell me you're obeying orders. Don't you bloody dare.
And again with Colin Maloney, director of the San Pedro camp.
Rex: They built ovens! And you're the director, so you know that.
Maloney: Look, I'm not in charge of policy...we had instructions that got sent out nationwide, worldwide, and we had orders from above not to say anything. I just did as I was told.
Invoked by Jack O'Neill in the Stargate SG-1 episode "Cor'Ai", where Teal'c stood trial on another world for crimes he committed there while under the service of the Goa'uld:
Teal'c, there are a lot things we do that we wish we could change and we sure as hell can't forget, but the whole concept of chain of command undermines the idea of free will. So as soldiers, we have to do some pretty awful stuff. But we're following orders like we were trained to. It doesn't make it easier; it certainly doesn't make it right, but it does put some of the responsibility on the guy giving those orders.
Radio
In one episode of Old Harry's Game the Professor is interviewing various historical figures for a history book, this includes a Nazi who claims he was only following orders. The Nazi in question was actually Hitler.
Tabletop Games
A subversion in the Traveller volume Alien Races 4. The Bwaps are a race whose hat is being BadassBureaucrats. In one side story a Bwap starport official is processing incoming passengers. The Bwap stopped a mother and her baby, claiming a petty technicality and caused the whole line behind her to become indignant at his supposed stupidity. But as it turned out the passengers behind were terrorists and the Bwap was pretending to be Just Following Orders as a Batman Gambit to delay them so that Swat could get into place—using stereotypes to divert suspicion. After the incident the Bwap insisted that the mother he was delaying share in the reward.
Theatre
Heinrich von Kleist's play The Prince of Homburg is about a cavalry general put on trial and condemned to death for disobeying an order not to charge in a battle.
Franz Liebkind (author of "Springtime for Hitler") in The Producers:
"I vas never a member of the Nazi party. I only followed orders. I had nossing to do with the war. I didn't even know there vas a war on. Ve lived in the back. Right across from Svitzerland. All ve heard vas yodeling."
Krupp, the policeman in The Time of Your Life: "All I do is carry out orders, carry out orders." His orders: "To keep the peace down here on the waterfront." His friend, McCarthy the longshoreman, asks him if that means hitting him over the head with a club if he's on duty and standing on the opposite side.
Subverted in George Bernard Shaw play The Devil's Disciple. When the hero Richard Dudgeon tries to rebuke General Burgoyne by saying "because you are paid to do it," Burgoyne retorts "Ah, I am really sorry that you should think that, Mr. Dudgeon. If you knew what my commission cost me, and what my pay is, you would think better of me. I should be glad to part from you on friendly terms."
Video Games
In The Punisher video game, one mook yells out "I was just following orders!" when you torture him to his breaking point.
Punisher: (Kill) Orders are no excuse.
Punisher: (Mercy) Think for yourself next time.
There's also another variation: "I'm just a soldier!"
Sunset Riders does this after one of the boss fights. After the beaten but still alive boss falls to the ground, his sister suddenly runs up and says "please don't shoot my brother. He was just following orders." Ever the chivalrous gentleman cowboy, your character can't turn down a request from a lady and agrees to spare him. Note that this is the only time you spare a boss; every other one gets a bullet between the eyes, even if he was just following orders.
It's rather odd that she would specifically ask you not to shoot him considering that, in order to beat the guy, you have to shoot him about a hundred times. What's one more bullet?
Mega Man 8 features Sword Man, the one robot master who doesn't seem to have any problem with Mega Man; in fact, he seems to respect him quite a bit. He invokes this trope (along with Nothing Personal) right before you fight him.
Assassin Blue uses this as an excuse for killing at least initially.
If you take The Paragon option, Commander Shepard in Mass Effect 2 can get two prison guards to avert this trope when beating up a prisoner.
Shepard: This degrades you as much as him.
Guard: We have orders.
Shepard: You're not important enough to make your own decisions?
Guard: I admit... I sometimes get tired of this. Does this really get us anything useful?
Shepard: Stop this. For your own sake.
Guard: Yeah, you're right. (To the other guard) Call it off. At least for now.
Admiral Hackett: I wish every soldier had your definition of "just doing your job." You're a credit to the uniform.
The Turians are implied to have tried to use this defence as justification for performing a pre-emptive strike on Pre-Contact Humanity, stating that were merely acting in accordance with Galactic Law to prevent tampering and activation of a dormant Mass Relay. Given how they are still paying reparations for the brief War that ensued, its clear that the Council didn't let them off the hook for this.
Web Comics
In Juathuur, this is the main source of conflict between Sojueilo (who follows orders) and Thomil (who doesn't).
Schlock Mercenary had the eponymous amorph explain fine details of "I'm just doing my job" to a bureaucrat who was going to take advantage of a strip search of Dr. Bunnigus, required of all doctors arriving in Haven Hive.
In Escape From Terra a UW gunner who incinerated a defenseless Cerean homestead tried to use this excuse, after the superior who ordered the attack had assured the gunner he'd be taking full responsibility. The court did not see it that way, he and the ordering officer were both executed.
Western Animation
After being defeated in a water balloon war, one of Nelson's goons says this in The Simpsons episode "Bart the General." Bart spares them and pelts Nelson with the extra balloons instead.
In one episode of Johnny Test, Johnny, his friends and enemies start to have a drag race but are stopped by the sheriff. The General tries to fast-talk their way through before yelling, "GO around him! the general rules!" The two secret agents call this trope as they do just that.
In Gravity Falls, Sheriff Blubs and Deputy Durland don't want to lock Dipper and Mabel up in a government facility in Washington, but they had orders.
Real Life
Famously used by Nazi defendants during the post World War 2 Nuremberg Trials. AKA the "Nuremberg Defense".
At the Nuremberg trials, it was established that "just following orders" is a valid defense, but only below the rank of lieutenant, and only if the orders in question are not clearly illegal. Many times the accused said that they followed orders because it was either work in the camps or the front line.
The US Military specifically states that following an order you know to be illegal (such as shooting civilians) denies you the use of this defense: you knew it was wrong and failed to refuse the order. It's failure to follow "Lawful Orders" that gets you punished, if an officer has to use a gun to make the troops follow orders it's clearly not lawful.
A soldier given an illegal order is basically put in a no-win situation: they can follow orders and get punished by a military court later, or disobey and get punished by their superior officer right now.
Although this impels the question that if the only victory is a moral one why not choose to disobey?
Why die later, when you can die now?
When top SS officer and Holocaust organizer Adolf Eichmann was brought to trial in Israel in 1961 after 15 years on the lam, he used the Nuremberg defense. Depositions from other SS officers, however, shot holes through even that defense.
The New York City Police Department (NYPD) marched to protest a few of their fellow cops being charged with sweeping crimes under the rug. The slogan on their sign was the name of this very trope. Analogues to Nazi Germany were not far behind.
Stanley Milgram's infamous psychological experiment in obedience, which tested whether people would willingly administer what they thought were painful, or even harmful, electrical shocks to another person if ordered to do so by an apparently knowledgeable authority. Over and over again, the majority of subjects were seen to follow the experimenter's instructions through to the end, although the "victim" voiced their protests, and even claimed to have a heart condition that could kill them if the shocks got too strong. This means that we are psychologically programmed to submit to authority.
Another famous experiment, the Stanford Prison Experiment, showed that even ordinary people given authority over their peers will invariably become drunk on power, even when they go back to normal lives outside of the prison. More recent experiments have shown that one is more likely to abuse authority if the position involves power without respect and/or prestige (e.g. traffic cops, the DMV, staff managers). This means they won't get in trouble if caught and are unlikely to lose much even if they do. Or they hate the job so much they just don't care.
Anyone who has ever worked in any of the positions just listed will tell you that this cuts both ways. Because, say, a traffic warden, a staff manager or a DMV teller is held in contempt by the public, this sometimes gives members of the public the idea that they can order you around or that normal rules don't apply to them.
The job doesn't even need any kind of power or prestige. This is the only real defense bottom-rung employees such as cashiers, waiters, and the like have against rude customers. If a customer starts berating them for something completely out of their control (prices, the room temperature, a policy they don't like,) the only thing the completely-powerless employee can say is "It's story policy/management's decision/up to the boss."
The Watergate burglars used the Just Following Orders defense, and succeeded. Notably, it succeeded because they had what they believed to be a lawful order, issued from the appropriate authority (the President), and they followed the order in the expectation that it was entirely valid. The Watergate scandal erupted and threatened to consume Nixon, but the grunts that actually committed the physical crime were acquitted. Remember, most people asked to do something by the Leader of the Free World tend to listen.
The fallout from this is a law referred to as Martinez-Baker, and is still on the books.
Jiang Qing, wife of Chairman Mao Zedong, attempted this defense when the Gang of Four was put on trial after Mao's death. It didn't work.
"I was Chairman Mao's dog. I bit whomever he asked me to bite."
The entire Romanian political police got away with everything they did after '89, because they were just following orders. Interestingly the people whose orders they followed suddenly turned out to be Good All Along, and promptly executed the Ceausescu couple as an act of justice. It worked. Nobody else was brought to trial for their atrocities.
Many of the torturers in the Hanoi Hotel were brainwashed teenage boys whose families were being held hostage by Pol Pot. They were told to either follow orders or they and their whole families would have the same fate as the prisoners. In later interviews, this trope is their justification, saying that they too were prisoners. It falls apart when one of the few survivors confronts his captor.
"I wasn't trying to do anything to that Parks woman except do my job. She was in violation of the city codes, so what was I supposed to do? That damn bus was full and she wouldn't move back. I had my orders."
There was at least one incident of an employee cutting off some branches from a couple of trees, damaging the cars parked underneath them in the process. The employee claimed he was ordered to cut the branches and had no other choice but to follow the orders, and his boss is responsible for everything.
The employee might have been charged with cutting the branches, but he also had a responsibility to do his job in a manner that avoids harming his boss/organization.