N.Y. Retirement & Social Security Law § 14
The attorney-general of the state shall be the legal adviser of the retirement system.