<?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 Re: Retrieve username from current data connection in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Retrieve-username-from-current-data-connection/m-p/507066#M15620</link>
    <description>&lt;P&gt;Looks like another one for&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1522"&gt;@ImkeF&lt;/a&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Sep 2018 12:41:56 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2018-09-04T12:41:56Z</dc:date>
    <item>
      <title>Retrieve username from current data connection</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Retrieve-username-from-current-data-connection/m-p/507034#M15618</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a use case where I'm writing a custom M function that requires the username from the current data connector's connection. For example, I am connected to Teradata database using teradata database credentials, and I want to retrieve the username that was used while authenticating to Teradata database in my custom M function.&lt;/P&gt;&lt;P&gt;I'm defining this M function in custom data connector. I tried using&amp;nbsp;&lt;EM&gt;Extension.CurrentCredential()[Username]&amp;nbsp;&lt;/EM&gt;to get the username from credentials but got the following error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Expression.Error: We can only perform this operation while using a custom data connector.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Namrata&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 12:03:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Retrieve-username-from-current-data-connection/m-p/507034#M15618</guid>
      <dc:creator>namratapawale</dc:creator>
      <dc:date>2018-09-04T12:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve username from current data connection</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Retrieve-username-from-current-data-connection/m-p/507066#M15620</link>
      <description>&lt;P&gt;Looks like another one for&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1522"&gt;@ImkeF&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 12:41:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Retrieve-username-from-current-data-connection/m-p/507066#M15620</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2018-09-04T12:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve username from current data connection</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Retrieve-username-from-current-data-connection/m-p/507099#M15625</link>
      <description>&lt;P&gt;I'm not familiar with this function. If nothing comes up here, I'd suggest asking on GitHub instead: &amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/Microsoft/DataConnectors/issues" target="_blank"&gt;https://github.com/Microsoft/DataConnectors/issues&lt;/A&gt; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 13:07:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Retrieve-username-from-current-data-connection/m-p/507099#M15625</guid>
      <dc:creator>ImkeF</dc:creator>
      <dc:date>2018-09-04T13:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve username from current data connection</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Retrieve-username-from-current-data-connection/m-p/507719#M15635</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1522"&gt;@ImkeF&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Extension.CurrentCredential() is mentioned in here in Data Connectors documentation:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Microsoft/DataConnectors/blob/master/docs/m-extensions.md#accessing-the-current-credentials" target="_blank"&gt;https://github.com/Microsoft/DataConnectors/blob/master/docs/m-extensions.md#accessing-the-current-credentials&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sure, I'll post this question on GitHub too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Namrata.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 06:27:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Retrieve-username-from-current-data-connection/m-p/507719#M15635</guid>
      <dc:creator>namratapawale</dc:creator>
      <dc:date>2018-09-05T06:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve username from current data connection</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Retrieve-username-from-current-data-connection/m-p/509208#M15697</link>
      <description>&lt;P&gt;By design (and for security reasons), it is not possible for queries to access credential information.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 11:05:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Retrieve-username-from-current-data-connection/m-p/509208#M15697</guid>
      <dc:creator>curth</dc:creator>
      <dc:date>2018-09-06T11:05:51Z</dc:date>
    </item>
  </channel>
</rss>

