Is it legal to use Social Security numbers for ID purposes? A. In Pennsylvania, it is not illegal for employers to use employee SSNs as ID numbers, provided the employer does not publicly share the Social Security numbers.