def METHOD_NAME(kth_id):
    """
    Lookup a user by KTH-ID. First, an attempt to connect to KTH directory using LDAP protocol is made.
    If the first attempt fails, a second attempt is made using KTH Profiles API.
    Params:
            `kth_id`: User's KTH-ID (username)
    Returns:
            `user_info`: User information containing the email, first name and last name if available.
    """
    # Try ldap protocol to get user details
    user_dict = lookup_user_with_ldap(kth_id)
    # If ldap does not succeed, try  api
    if user_dict is None:
        user_dict = lookup_user_with_api(kth_id)
    return user_dict