def get_authorized_node_settings(user_addon):
    return AddonDataverseNodeSettings.find(
        Q('user_settings', 'eq', user_addon)
    )
Returns node settings authorized by a given user settings object
dataset/ETHPy150Open CenterForOpenScience/osf.io/scripts/dataverse/migrate_to_external_account.py/get_authorized_node_settings