Nonperson

A nonperson is a citizen or a member of a group who lacks, loses, or is forcibly denied social or legal status, especially basic human rights, or who effectively ceases to have a record of their existence within a society (damnatio memoriae), from a point of view of traceability, documentation, or existence.

Legal status
In the case of undocumented immigrants and at times foreign nationals in the United States who have entered the country legally, there are comparisons made to non-personhood due to their lack of agency and differential treatment under the law.