If New York City is given user data from the last seven years, the privacy of scores of hosts and thousands of guests will be compromised, lawyers for Airbnb have argued in opposition to the broad subpoena sought by the city government.

Airbnb’s bid to foil the subpoena is the latest step in the legal fight between city officials and the home-sharing tech company. Airbnb is opposing the city’s motion to compel the company to turn over data on hosts who rented out space in seven buildings on West 47th Street in Manhattan all owned by Big Apple Management, which is also the target of a lawsuit filed by the city, as well as guests who stayed in the units dating back to the start of 2011.