In accordance with the legislation applicable at the time of issuing this opinion, Article 22 of the LOPD would constitute the legitimate basis for the processing of data consisting of the communication of information to the judicial police necessary for a specific investigation, including the communication of specially protected data. As for the data of the padron (sliding wheels and cohabiting wheels) of the residents of a building, it can be considered appropriate for the purposes of the treatment and not excessive. However, the request for information from municipal databases, without the specification of the information necessary for the purposes of the judicial inquiry carried out, may prove disproportionate. In this case, the city council is recommended to request the judicial police a specific statement justifying the requested information. The same conclusion would be reached by application of LO 7/2021, applicable from 16 June 2021 onwards.