GRAND RAPIDS, Mich. (AP) — The practice of fingerprinting people without probable cause or a warrant is unconstitutional, the Michigan Supreme Court said Friday.

The court unanimously said Grand Rapids police violated the Fourth Amendment protection against unreasonable search and seizure.

“The fingerprinting of each of the plaintiffs in these cases constituted a physical trespass onto a person’s body, a constitutionally protected area,” Justice Richard Bernstein wrote.

The incidents involved two Black teenagers in 2011 and 2012, though the American Civil Liberties Union said photos and fingerprints were taken from thousands of people in Grand Rapids.

“The policy enabled decades of racial profiling, police overreach and threats to personal privacy,” said Dan Korobkin, legal director at the ACLU in Michigan.

Denishio Johnson was stopped after cutting through the parking lot of a fitness club where there had been vehicle thefts.