You could add user jenkins to the wheel group with sudo privileges (as root)
usermod -aG wheel jenkins
and then use this in your script
echo "jenkins-password" | sudo -S /usr/sbin/useradd -p "pass" "username"
You could add user jenkins to the wheel group with sudo privileges (as root)
usermod -aG wheel jenkins
and then use this in your script
echo "jenkins-password" | sudo -S /usr/sbin/useradd -p "pass" "username"