stereotyping

Stereotyping is the ascription of generalized characteristics to a whole group of people, thus describing individuals by the characterization, usually a caricature, of the whole.