Add function for getting user index number