Drop privileges to a correct user if passed as a parameter