# Casting a Spel expression

**URL:** <https://support.openanalytics.eu/t/casting-a-spel-expression/2657>\
**Category:** ShinyProxy\
**Created:** [October 25, 2023, 2:44pm UTC](https://support.openanalytics.eu/t/casting-a-spel-expression/2657 "2023-10-25T14:44:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kramerrs](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/kramerrs/32/793_2.png) [@kramerrs](https://support.openanalytics.eu/u/kramerrs)\
**Post date:** [October 25, 2023, 2:44pm UTC](https://support.openanalytics.eu/t/casting-a-spel-expression/2657/1 "2023-10-25T14:44:11Z")

</div>

Happy Halloween!

I have a SAML IDP providing roles, and shinyproxy is populating the SHINYPROXY\_USERGROUPS environment variable like this  
SHINYPROXY\_USERGROUPS: CN=DATA TEAM,OU=DISTRIBUTION LISTS,…

I am trying to add group contingencies. I have tried access-groups and access-expressions.

of the forms:

access-groups: [DATA TEAM]

–or–

access-expression: “#{proxy.getRuntimeValue(‘SHINYPROXY\_USERGROUPS’).contains(‘DATA TEAM’) }”

I have tried a couple variations on the access-expression.

Is there any way to log these values to see what the data structures are? I received an error that the result of proxy.getRuntimeValue didn’t have a contains method, so I take it that it isn’t a string, possible some list, but I don’t know how to index it.
