def find_user(user_name, source):
    """
    Search for a user by name on the given object
    """
    name = user_name.lower()
    for user in source.users:
        if user.nickname.lower() == name:
            return user
    return None