The referendum's origins lay with the request made by the President of Indonesia Bacharuddin Jusuf Habibie to the United Nations Secretary-General Kofi Annan on 27 January 1999 for the United Nations to hold a referendum whereby the Indonesian province will be given choice of greater autonomy within Indonesia or independence .