Who can have an SSN?

SSN is issued to United States citizens and temporary resident aliens. Temporary resident aliens are aliens who have received a work permit and continue to work in the United States.

This applies to visa types that allow work permits, such as the H1-B visa. However, in some cases, foreigners who have not been granted a temporary residence permit can also obtain an SSN, but this is very rare.