6 Shiny

6.1 User meta-data

Shiny applications can access the username and groups of the current user through the session parameter of the shinyServer function.

Groups meta-data is populated when using password, or OAuth authentication. It is not populated with LDAP, PAM, or proxy authentication.

shinyServer(function(input, output, session) {
  output$username <- reactive({
  output$groups <- reactive({

Your application could use this information to display customized messages or to enable functionality for a specific subset of users.