Passage: Typically, the bureaucrat and his immediate family would live in a residence attached to the yamen. This was especially so during the Qing dynasty, when imperial law forbade a person from taking government office in his native province.

Question: When was the bureaucrat and his immediate family able to live in a residence attached at the yamen?
during the Qing dynasty