Mask Employee Social Security Numbers for the US and Guam

You have the option to mask your employees' Social Security numbers on their year-end forms. If you choose to do this, you must perform this configuration before you attempt to generate the forms.

You can mask employee Social Security Numbers (SSNs) on the employee W-2 4-up form.

  • B - To be filed with the employee's federal tax return

  • C – For the employee's records

  • 1 – To be filed with the employee's state, city, or local income tax return

  • 2 – To be filed with employee's state, city, or local income tax return

Note: Before modifying copy 1 or 2, confirm with your state, city, and local governments if they allow masking or truncation of Social Security numbers.

You can configure the masking to appear as either XXX-XX-1234 or ***-**-1234.

Note: The EmployeeW2 template changes every year, so you must perform this configuration yearly.

To mask the SSNs:

  1. Open the appropriate predefined EmployeeW2 template in the Custom folder.

    For further info, see Fusion US Payroll: How to Customize W2 Template (2834034.1) on My Oracle Support.

  2. Edit the template to mask the SSN.

    1. Navigate to Copy B: Employee’s social security number (SSN).

    2. Right-click SSN, and select BI-Publisher and then Properties.

    3. Replace:

      <?../EMPLOYEE_INFO_REC/PRIMARY_NID?>
      with:
      <?concat('XXX-XX-', substring(EMPLOYEE_INFO_REC/PRIMARY_NID,string-length(EMPLOYEE_INFO_REC/PRIMARY_NID)-4))?>
      Note: You can use X or * as the masking character.
    4. Click OK.

  3. Repeat this step for Copy C and other copies as appropriate.

  4. Upload the template.

    If you have performed this configuration in previous years, you must first remove the old template from the Custom folder.

    For further info, see Fusion US Payroll: How to Customize W2 Template (2834034.1) on My Oracle Support.