Catalysis of the reaction: 3'-phosphoadenylyl sulfate + alpha-D-glucosaminyl-(n) = adenosine 3',5'-bisphosphate + 2 H+ + N-sulfo-alpha-D-glucosaminyl-(n).
heparin N-deacetylase/N-sulfotransferase activity