Arenesulfonamides, sulfamide, and cyanamide are efficiently allylated using allylic carbonates under Pd(0)-catalysis. N-Arenesulfonyl-2,5-dihydropyrroles are obtained by ruthenium-mediated ring closing metathesis of the corresponding N-diallylated compounds. A stereochemical study of the reactions of ethyl cis-(5-methyl-2-cyclohexenyl) carbonate with 2,4,6-triisopropylphenylsulfonamide was performed