Companies have been doing that for a long time now. You're not a person, you're an ID number in the payroll database, that needs to produce more profit than you cost the company.
When you emigrate to another country, you're viewed much the same way as a non-citizen by the system.
Well, although this particular quote is from a book from 2010, Terry Pratchett had been writing about these kinds of problems for decades at that point too, so that fits. For example, in Reaper Man from 1991 shopping malls were invasive parasitical life-forms from another universe.
Even in your own country you’re viewed the same way, it’s just that your database entry has higher privileges. I mean this universally, no particular country in mind.
— John Brunner, "The Shockwave Rider"