I have a friend in Spain who does just this very thing, he has never mentioned to me that he had to have a licence, or that he has told the authorities, I would imagine that if you told them, by the time you had filled in the necessary forms, been approved, paid the fee's, employed a solicitor, been to many town halls, had numerous interviews....You would be ready to retire before you even started work.