New York Attorney General Letitia James on Wednesday announced she has reached a settlement with a large New York City-based landlord that her office investigated for wrongfully obtaining housing-court records for more than two dozen potential tenants over several months, then denying housing to seven of them.

James framed the investigation into the Clipper Equity real-estate company, and the resulting settlement memorialized in a 14-page “Assurance of Discontinuance,” as part of her Housing Protection Unit’s efforts to protect New York tenants by cracking down on illegal tenant blacklisting.