This worked also for me. Is there any hope that a thing like Region/Region1 in ${security.user.roles}
may work?
Thanks,
Mario
That won't work but this will:
Region/Region1 in (${security.user.roles.map(role => "'" + role + "'").join(', ')})
I'm also to try filter data in a datagrid by user role, I have a single table "Funds" and column 'Fund'. My roles match the entries in Funds. 100 funds 100 roles. I've tried to filter on load event
${event.filter ? event.filter + ' and ' : ''}Fund in (${security.user.roles.map(role => "'" + role + "'").join(', ')})
Also have a admin role that needs to access the all.
Help appreciated.