It seems you might be referring to Solomon Asch's famous experiments on conformity or perhaps the "Milgram experiment" conducted by Stanley Milgram. The Milgram experiment, conducted in the early 1960s, explored the conflict between obedience to authority and personal conscience.
New to topics? Read the docs here!