Adding api_get_user_info_from_email()
Minor change in order to not update teachers see BT#6449