Plays a key role in the nitrogen metabolism of microorganisms, animals and plants. ATP + L-glutamate + NH4(+) = ADP + H(+) + L-glutamine + phosphate Homohexamer. Belongs to the glutamine synthetase family.