# Demo for retrieving username and groups in Shiny now available

**URL:** <https://support.openanalytics.eu/t/demo-for-retrieving-username-and-groups-in-shiny-now-available/2795>\
**Category:** ShinyProxy Announcements\
**Created:** [June 20, 2024, 11:14am UTC](https://support.openanalytics.eu/t/demo-for-retrieving-username-and-groups-in-shiny-now-available/2795 "2024-06-20T11:14:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tdekoninck](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/tdekoninck/32/1079_2.png) [@tdekoninck](https://support.openanalytics.eu/u/tdekoninck)\
**Post date:** [June 20, 2024, 11:14am UTC](https://support.openanalytics.eu/t/demo-for-retrieving-username-and-groups-in-shiny-now-available/2795/1 "2024-06-20T11:14:20Z")

</div>

The recent release of ShinyProxy 3.1.0 features a new way of retrieving the username and usergroups using HTTP headers instead of environment variables. This makes it possible to still identify a user when using [container pre-initialization and sharing](https://shinyproxy.io/documentation/configuration/#container-pre-initialization-and-sharing).

We recently created a demo app, explaining how to do this in Shiny: [https://github.com/openanalytics/shinyproxy-shiny-demo-auth](https://github.com/openanalytics/shinyproxy-shiny-demo-auth)  
The app can also be used to quickly debug which HTTP headers and environment variables are available.
