Tychobra / polished

Authentication and Administration for Shiny apps
https://polished.tech
Other
234 stars 36 forks source link

Using the user email address #149

Closed farhadsalimi closed 3 years ago

farhadsalimi commented 3 years ago

Is there a way to extract the user's email address as a character to use it later on (e.g as a title of a plot)?

farhadsalimi commented 3 years ago

Just to clarify further, I would like to know how this can be done using Polished: https://shiny.rstudio.com/articles/permissions.html

farhadsalimi commented 3 years ago

I managed to figure it out :) "session$userData$user()[3]" in the server will give use the email address

merlinoa commented 3 years ago

Yep, that's it. You can access is more explicitly with session$userData$user()$email