Being the room / flat owner he has all the rights to ask for your ID details. But no one can demand for your ID card except your sponsor or police or labor dept., officials when there is a need. It identifies your legal stay in Qatar that's it.