A court may order a criminal defendant upon whom a fine, forfeiture, or penalty is imposed, to disclose to the court his or her social security number in order to assist in its collection. That social security number is not a public record and shall not be disclosed except for collection purposes.
Ca. Gov. Code § 68107