Obtaining info about the app viewer

Is it possible to obtain information about the user viewing the app from within the app? Preferably, I would like to pull their user ID so I can submit it as a function input.

It depends on where your app is running. If you're on Connect or Shinyapps.io and your app requires authentication the session$user object should have the user's identity.

Otherwise you'll need to roll your own auth.

This topic was automatically closed 90 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.