Ordered that the judgment is affirmed, with costs.
General Municipal Law § 50-k(2) requires the Corporation Counsel of the City of New York to defend municipal employees in civil actions "which the corporation counsel finds occurred while the employee was acting within the scope of his [or her] public employment and in the discharge of his duties and was not in violation of any rule or regulation of his [or her] agency at the time the alleged act or omission occurred". Whether an employee was acting within the scope of his or her employment and is entitled to legal representation must be determined in the first instance by the Corporation Counsel, whose determination "may be set aside only if it lacks a factual basis, and in that sense, is arbitrary and capricious" ( Matter of Williams v. City of New York, 64 N.Y.2d 800, 802). Contrary to the petitioners' contention, the report prepared by the Special Commissioner for Investigation for the New York City School District provided the Corporation Counsel with a sufficient factual basis to determine that the acts allegedly committed by the subject employee were not within the scope of his employment ( see, Judith M. v. Sisters of Charity Hosp., 93 N.Y.2d 932; Joshua S. v. Casey, 206 A.D.2d 839). Accordingly, the Supreme Court properly denied the petition and dismissed the proceeding.