<?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: Set datasource credentials programmatically in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Set-datasource-credentials-programmatically/m-p/1205979#M24616</link>
    <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/237665"&gt;@rshahrabani&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Maybe you can try to parameterize your connection string based on query parameters, then you can dynamically switch Datasource(same data structure) based on posted query parameters and Datasource credentials.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Using-the-Power-BI-Service-Parameters-to-change-connection/ba-p/392016" target="_self"&gt;Using the Power BI Service Parameters to change connection strings (To possibly change between Dev &lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://stackoverflow.com/questions/37919757/power-bi-embedded-change-connection-string-for-direct-query" target="_self"&gt;power bi embedded, change connection string for direct query&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://azure.microsoft.com/en-us/updates/power-bi-embedded-query-parameters-api/" target="_self"&gt;Power BI Embedded Query Parameters API&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;In addition, you can also take a look at the following link to switch between different contents:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers" target="_self"&gt;Tutorial: Embed Power BI content into an application for your customers&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jul 2020 09:23:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-07-07T09:23:01Z</dc:date>
    <item>
      <title>Set datasource credentials programmatically</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Set-datasource-credentials-programmatically/m-p/1193345#M24461</link>
      <description>&lt;P&gt;We are building an ISV application that uses Power BI embedding for rendering of Power BI reports.&amp;nbsp; This application will be distributed to client sites and each will have different database logins (username/password) for all their reports.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need a way to programmatically (and securely) set these datasource credentials at runtime when a user attempts to run the report.&amp;nbsp; These credentials cannot be appended as parameters to the URL or other insecure methods.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have a method for doing this dynamically in C#?&amp;nbsp; Your help is much appreciated.&lt;/P&gt;&lt;P&gt;Ronny&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 20:16:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Set-datasource-credentials-programmatically/m-p/1193345#M24461</guid>
      <dc:creator>rshahrabani</dc:creator>
      <dc:date>2020-06-30T20:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set datasource credentials programmatically</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Set-datasource-credentials-programmatically/m-p/1197027#M24516</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/237665"&gt;@rshahrabani&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I'd like to suggest you take a look at gateway update data source api and try to use it to set data source credentials.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/gateways/updatedatasource" target="_self"&gt;Gateways - Update Datasource&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;BTW, I don't think it is possible to update credentials every time when the user accesses. Maybe you can try to set dynamic RLS based on username and configure them in user data.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embedded-row-level-security" target="_self"&gt;Row-level security with Power BI Embedded&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 07:25:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Set-datasource-credentials-programmatically/m-p/1197027#M24516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-02T07:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set datasource credentials programmatically</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Set-datasource-credentials-programmatically/m-p/1198788#M24551</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Gateways - Update Datasource will modify the credentials on the report residing in the Power BI service, and Row-level security will limit the data to a subset given the username.&amp;nbsp;What we are trying to do is to allow execution of a report's datasource login to be configured for different users.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, a client site will have 3 databases (development, QA and production) with identical structures (but different data).&amp;nbsp; The development site will execute the report residing on Power BI service with one set of database credentials (username/password) and the QA site will execute the same report on Power BI service with a different set of credentials. This database login needs to be established at runtime with different credentials for each of these platforms (dev, QA and prod).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to do this programmatically within our Power BI embedded app?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ronny&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 20:20:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Set-datasource-credentials-programmatically/m-p/1198788#M24551</guid>
      <dc:creator>rshahrabani</dc:creator>
      <dc:date>2020-07-02T20:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set datasource credentials programmatically</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Set-datasource-credentials-programmatically/m-p/1205979#M24616</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/237665"&gt;@rshahrabani&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Maybe you can try to parameterize your connection string based on query parameters, then you can dynamically switch Datasource(same data structure) based on posted query parameters and Datasource credentials.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Using-the-Power-BI-Service-Parameters-to-change-connection/ba-p/392016" target="_self"&gt;Using the Power BI Service Parameters to change connection strings (To possibly change between Dev &lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://stackoverflow.com/questions/37919757/power-bi-embedded-change-connection-string-for-direct-query" target="_self"&gt;power bi embedded, change connection string for direct query&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://azure.microsoft.com/en-us/updates/power-bi-embedded-query-parameters-api/" target="_self"&gt;Power BI Embedded Query Parameters API&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;In addition, you can also take a look at the following link to switch between different contents:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers" target="_self"&gt;Tutorial: Embed Power BI content into an application for your customers&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 09:23:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Set-datasource-credentials-programmatically/m-p/1205979#M24616</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-07T09:23:01Z</dc:date>
    </item>
  </channel>
</rss>

