Notwithstanding any other law to the contrary, a state department, licensing or regulatory board, agency, or commission is prohibited from placing or otherwise revealing the Social Security number of a person, including, but not limited to, full- or part-time employees thereof, on any document that is available for public inspection including, but not limited to, state personnel evaluation forms and any other forms related thereto unless otherwise required by law, without the express consent of the person with the number, or the consent of that person's parent, custodian, legal guardian, or legal representative. The foregoing prohibition shall not apply when a federal or state agency makes a request for or releases a Social Security number for a legitimate government purpose, or pursuant to a federal or state statute, regulation, or federally funded program or pursuant to an administrative or judicial subpoena or order. Nothing in this section is intended to create or establish a new cause of action for damages in any court. Nothing in this section shall be construed as a waiver of sovereign or qualified immunity. This section shall not be applicable to a document originating with any court or taxing authority, any document that when filed by law constitutes a consensual or nonconsensual lien or security lien or security interest, or any record of judgment, conviction, eviction, or bankruptcy. If express consent to reveal a Social Security number has not been obtained, a state department or agency shall redact, remove, cover, or otherwise excise the Social Security number of any person from any document that is available for public inspection so that the remaining portion of the document may be revealed.