Implement a special command to set template permissions in bulk (OMS-336)