Can Dubai villa owners legally rent out each floor to a different family?

Dubai Municipality is authorised to regulate shared accommodation, including determining the areas where it is permitted and the properties that can be designated for it ...