That was the main reason why Europeans were forced to switch to a passport with biometric data (some fingerprints and photo) on a chip more than a decade ago.
People from (all?) visa waiver countries have their fingerprints taken when entering the US, in addition to having to submit an ESTA[0] application before arrival. Last I checked, it still asked for all your social media handles (although you're not required to provide them).
I've seen it while returning from a trip to Taiwan recently, via JFK. They took fingerprints from non-US passport holders at Customs, I think; they didn't take mine.
Yeah all non-citizens have to do that. If and when you become a citizen you won’t have to. It’s crazy how much nicer entering the country feels after that lol