Can I access Trigger's script variables

Hello,

I was wondering if I can access the values in variables defined in a Trigger script ?

For example :

def users = [];
for (def uname : ctx.results[0].aggregations.failed_logins.buckets) {
    if (uname.doc_count>2) {
        users.add(uname.key);
    }
}

Can I access the content of users array in my actions ?

Thank you