Not Palantir. Their CEO has explicitly said that they don't collect data on US citizens.
Their defacto scan everyone isn't to determine citizenship, it is to collect the data in the first place. They want to get as much data into their system as possible.