Some beekeepers do receive permission to practice rooftop beekeeping or have a hive on a balcony. You would have to research the rules and regulations for your building.