Catalyzes the conversion of glucosamine-6-phosphate to glucosamine-1-phosphate. alpha-D-glucosamine 1-phosphate = D-glucosamine 6-phosphate Binds 1 Mg(2+) ion per subunit. Activated by phosphorylation. Was identified as a high-confidence drug target. Belongs to the phosphohexose mutase family.