Add script and config for privilege mapping setting