Enzyme that catalyzes the removal of the ammonia group from glutamine and transfers it to a substrate to form a new carbon-nitrogen group. Glutamine amidotransferase (GATase) domains can occur either as single polypeptides or as domains in larger multifunctional proteins. There exist two classes of glutamine amidotransferases domains: I and II.