Screening of a human gut metagenomic library yielded a set of novel beta-N-acetyl-glucosaminidases. Mutation of active site residues yielded a thioglycoligase that efficiently S-GlcNAcylates protein targets as well as various thiosugar acceptors.