<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using Azure Databricks to manage my R Shiny front-end, need to know the user via R session in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/using-azure-databricks-to-manage-my-r-shiny-front-end-need-to/m-p/24649#M17160</link>
    <description>&lt;P&gt;Using the &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/sparkr/shiny" alt="https://learn.microsoft.com/en-us/azure/databricks/sparkr/shiny" target="_blank"&gt;Azure Databricks R Shiny example&lt;/A&gt;, I am easily able to instantiate a R Shiny web front session.  The URL that is provided by Databricks provides the proxy session that allows my targeted audience to directly access my `R Shiny` app using that URL.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to obtain the user_id via that is currently accessing directly to my R Shiny web session context.  How do I do that?  Does Azure Databricks proxy wrapper (to my R Shiny web app) provides any authentication or authorization using the physical access token of that particular user?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please don't get confused with the following, which promptly returns the user_id of my Databricks compute session that is hosting my R Shiny web app and that is &lt;B&gt;&lt;U&gt;not&lt;/U&gt;&lt;/B&gt; what I am after.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;library(SparkR)
&amp;nbsp;
get_current_user &amp;lt;- SparkR::sql("SELECT current_user()")
user_df &amp;lt;- as.data.frame(get_current_user)
current_user &amp;lt;- user_df[1,1]
&amp;nbsp;
print(current_user)
# [1] "dbx_user@fqdn.com"
&amp;nbsp;
typeof(current_user)
# [1] "character"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Oct 2022 22:42:44 GMT</pubDate>
    <dc:creator>dataslicer</dc:creator>
    <dc:date>2022-10-31T22:42:44Z</dc:date>
    <item>
      <title>Using Azure Databricks to manage my R Shiny front-end, need to know the user via R session</title>
      <link>https://community.databricks.com/t5/data-engineering/using-azure-databricks-to-manage-my-r-shiny-front-end-need-to/m-p/24649#M17160</link>
      <description>&lt;P&gt;Using the &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/sparkr/shiny" alt="https://learn.microsoft.com/en-us/azure/databricks/sparkr/shiny" target="_blank"&gt;Azure Databricks R Shiny example&lt;/A&gt;, I am easily able to instantiate a R Shiny web front session.  The URL that is provided by Databricks provides the proxy session that allows my targeted audience to directly access my `R Shiny` app using that URL.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to obtain the user_id via that is currently accessing directly to my R Shiny web session context.  How do I do that?  Does Azure Databricks proxy wrapper (to my R Shiny web app) provides any authentication or authorization using the physical access token of that particular user?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please don't get confused with the following, which promptly returns the user_id of my Databricks compute session that is hosting my R Shiny web app and that is &lt;B&gt;&lt;U&gt;not&lt;/U&gt;&lt;/B&gt; what I am after.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;library(SparkR)
&amp;nbsp;
get_current_user &amp;lt;- SparkR::sql("SELECT current_user()")
user_df &amp;lt;- as.data.frame(get_current_user)
current_user &amp;lt;- user_df[1,1]
&amp;nbsp;
print(current_user)
# [1] "dbx_user@fqdn.com"
&amp;nbsp;
typeof(current_user)
# [1] "character"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 22:42:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-azure-databricks-to-manage-my-r-shiny-front-end-need-to/m-p/24649#M17160</guid>
      <dc:creator>dataslicer</dc:creator>
      <dc:date>2022-10-31T22:42:44Z</dc:date>
    </item>
  </channel>
</rss>

