<?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 upn in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/upn/m-p/4611538#M7944</link>
    <description>&lt;P&gt;Can databricks notebook return the current UPN (equiavalent DAX USERPRINCIPALNAME())?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;select current_user()&lt;/LI-CODE&gt;
&lt;P&gt;returns&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;trusted-service-user&lt;/SPAN&gt; which is not useable.&lt;/P&gt;
&lt;P&gt;I need it to return the following&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;john.doe@company.com&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;</description>
    <pubDate>Sat, 15 Mar 2025 19:10:24 GMT</pubDate>
    <dc:creator>smpa01</dc:creator>
    <dc:date>2025-03-15T19:10:24Z</dc:date>
    <item>
      <title>upn</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/upn/m-p/4611538#M7944</link>
      <description>&lt;P&gt;Can databricks notebook return the current UPN (equiavalent DAX USERPRINCIPALNAME())?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;select current_user()&lt;/LI-CODE&gt;
&lt;P&gt;returns&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;trusted-service-user&lt;/SPAN&gt; which is not useable.&lt;/P&gt;
&lt;P&gt;I need it to return the following&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;john.doe@company.com&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;</description>
      <pubDate>Sat, 15 Mar 2025 19:10:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/upn/m-p/4611538#M7944</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2025-03-15T19:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: upn</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/upn/m-p/4611563#M7946</link>
      <description>&lt;P&gt;Have you tried this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;user = dbutils.notebook.entry_point.getDbutils().notebook().getContext().userName().get()&lt;BR /&gt;print(user)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Mar 2025 20:41:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/upn/m-p/4611563#M7946</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-03-15T20:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: upn</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/upn/m-p/4611608#M7947</link>
      <description>&lt;P&gt;sorry, I meant fabric notebook and not databricks notebook&lt;/P&gt;</description>
      <pubDate>Sun, 16 Mar 2025 01:19:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/upn/m-p/4611608#M7947</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2025-03-16T01:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: upn</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/upn/m-p/4611728#M7950</link>
      <description>&lt;P&gt;Fabric Notebooks execute under a service identity rather than the context of an individual user.&lt;BR /&gt;&lt;BR /&gt;thats why&amp;nbsp;When you run a statement such as `select current_user()`, the output is the service account (“trusted-service-user”) rather than the individual’s email address&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a known limitation which has been discussed here in forum and enhancements to be made &amp;nbsp;to the mssparkutils package.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Mar 2025 07:02:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/upn/m-p/4611728#M7950</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-03-16T07:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: upn</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/upn/m-p/4611841#M7956</link>
      <description>&lt;P&gt;mssparkutils.env.getUser&lt;/P&gt;</description>
      <pubDate>Sun, 16 Mar 2025 13:17:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/upn/m-p/4611841#M7956</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2025-03-16T13:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: upn</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/upn/m-p/4611848#M7957</link>
      <description>&lt;P&gt;Thanks for sharing this. I haven't tried this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Mar 2025 13:32:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/upn/m-p/4611848#M7957</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-03-16T13:32:44Z</dc:date>
    </item>
  </channel>
</rss>

