In spite of that the access on the part of the General Direction of Police, for the exercise of its competences on the subject of control and permanence of the foreigners in Spain, to the data of personal character of the municipal Census of inhabitants related to persons foreign that they are in situation irregular, he can find habilitation to the Disposal Additional seventh of the Law of Bases of the Regime Local, it is not necessary or justified from the point of view of the regulations of data protection, that the town councils communicate of profession To the General Direction of Police the data of the foreign persons who register in the Census. In the rest of suppositions, in accordance with what orders the additional fifth Disposal of the L.O. 4/2000, about rights and freedoms of the foreigners in Spain and its social integration, the obtaining of the data of the municipal Census on the part of the competent administrations that are necessary for the procedure of the foreseen procedures for the mentioned organic Law, has a way specific to access through the data of the Census which the National Institute of Statistics has. In any case, the Agency has also pointed out that, in spite of what has just exposed itself, which constitutes the valid legal regime, the implementation of effective policies of control of the permanence of the foreign persons in Spain considers convenient to attempt to look for a solution which it allows to make compatible in better measure, with the essential contents of the fundamental right to the protection of data.