A facile and general synthesis of various N-substituted cyanamides was accomplished by the Tiemann rearrangement of amidoximes with benzenesulfonyl chlorides (TsCl or o-NsCl) and DIPEA.