The restricted Weyl group of the Cuntz algebra and shift endomorphisms