How to get username logged into shiny app hosted on shinyapps.io

I am working on a shiny app where I am using bookmarks. So when host this app on shinyapps.io I am dont want other users to see the bookmarks which I did using my user login. I tried using User = Sys.getenv("LOGNAME")) but it always returns the username as Shiny.

That is the user that the code is running as on our server.
You may want the session$clientData?

http://shiny.rstudio.com/articles/client-data.html

2 Likes

It did work with session$user for a private app with standard shinyapp.io subscription.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.