N.Y. Criminal Procedure Law § 160.10
1. Following an arrest, or following the arraignment upon a local criminal court accusatory instrument of a defendant whose court attendance has been secured by a summons or an appearance ticket under circumstances described in sections 130.60 and 150.70, the arresting or other appropriate police officer or agency must take or cause to be taken fingerprints of the arrested person or defendant if an offense which is the subject of the arrest or which is charged in the accusatory instrument filed is:
2. In addition, a police officer who makes an arrest for any offense, either with or without a warrant, may take or cause to be taken the fingerprints of the arrested person if such police officer: