adds elasticsearch user to script