Catalysis of the reaction: 2 L-glutamine + 2 ATP + 2 H(2)O + hydrogenobyrinate = 2 L-glutamate + 2 ADP + 4 H(+) + hydrogenobyrinate a,c-diamide + 2 phosphate.