def get_user_info(access_key, secret_key):
    if not (access_key and secret_key):
        return None

    try:
        return connect_s3(access_key, secret_key).get_all_buckets().owner
    except exception.S3ResponseError:
        return None
    return None
Returns an S3 User with .display_name and .id, or None
dataset/ETHPy150Open CenterForOpenScience/osf.io/website/addons/s3/utils.py/get_user_info