Ruthenium-catalysed hydrogen transfer has been successfully used for the conversion of alcohols into either 2,3-dihydroquinazolines or quinazolines. The choice of reaction conditions allows for the selective formation of either heterocycle and the methodology can also be applied to the sulfonamide analogue.
Watson, A. J. A., Maxwell, A. C., & Williams, J. M. J. (2012). Ruthenium-catalysed oxidative synthesis of heterocycles from alcohols. Organic and Biomolecular Chemistry, 10(2), 240-243. https://doi.org/10.1039/c1ob06516e