N.Y. Criminal Procedure Law § 160.58
2. The court that sentenced the defendant to a judicially sanctioned drug treatment program may on its own motion, or on the defendant's motion, order that all official records and papers relating to the arrest, prosecution and conviction which resulted in the defendant's participation in the judicially sanctioned drug treatment program be conditionally sealed. In such case, the court may also conditionally seal the arrest, prosecution and conviction records for no more than three of the defendant's prior eligible misdemeanors, which for purposes of this subdivision shall be limited to misdemeanor offenses defined in article two hundred twenty or two hundred twenty-one of the penal law. The court may only seal the records of the defendant's arrests, prosecutions and convictions when:
6. Records sealed pursuant to this subdivision shall be made available to: