<?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 Multi Tenant Embedded in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Multi-Tenant-Embedded/m-p/333730#M9875</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I was looking to see if this is possible, and if so, what steps would be needed to implement. I can't seem to find the correct information I need. We are using App Owns Data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;We have over 100 clients, each with their own database. I have created a report using one of our dev sites databases as the data source. I am looking to create a copy for each of the clients' databases (all tables are the same across databases and the report) and embed them. I am trying to avoid having to manually change the database connection for each client, as that's very time consuming. Is it best to have a separate workspace for each client? Any info is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp; Nick&lt;/P&gt;</description>
    <pubDate>Sun, 07 Jan 2018 23:58:46 GMT</pubDate>
    <dc:creator>Nick_BI</dc:creator>
    <dc:date>2018-01-07T23:58:46Z</dc:date>
    <item>
      <title>Multi Tenant Embedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Multi-Tenant-Embedded/m-p/333730#M9875</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I was looking to see if this is possible, and if so, what steps would be needed to implement. I can't seem to find the correct information I need. We are using App Owns Data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;We have over 100 clients, each with their own database. I have created a report using one of our dev sites databases as the data source. I am looking to create a copy for each of the clients' databases (all tables are the same across databases and the report) and embed them. I am trying to avoid having to manually change the database connection for each client, as that's very time consuming. Is it best to have a separate workspace for each client? Any info is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp; Nick&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jan 2018 23:58:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Multi-Tenant-Embedded/m-p/333730#M9875</guid>
      <dc:creator>Nick_BI</dc:creator>
      <dc:date>2018-01-07T23:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Tenant Embedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Multi-Tenant-Embedded/m-p/333944#M9886</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/51229"&gt;@Nick_BI&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://tsmatz.wordpress.com/2017/07/14/power-bi-embed-report-in-app/" target="_self"&gt;Here&lt;/A&gt; is a good article in which a solution for data source connectivity and multi-tenancy of data is mentioned. Could you go to check if it helps in your scenario?&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.fabric.microsoft.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;For ISV applications (SaaS applications, etc), the separation of data is also concerns. The data of the company A will be different from the one of company B.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In such a case, you can set and change the connection string or credentials using rest api.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First you can get the data source id and gateway id by the following HTTP request. &amp;nbsp;(In this example, we assume that the type of data source is SQL Server.)&lt;BR /&gt;Note that the following “&lt;CODE&gt;id&lt;/CODE&gt;” in HTTP response is the data source id.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;GET https://api.powerbi.com/v1.0/myorg/groups/a4781858-f3ef-47c2-80a9-fa14845c833b/datasets/44a12ee1-8da7-4383-a2cf-89129ef6e1a7/Default.GetBoundGatewayDataSources
Accept: application/json
Authorization: Bearer eyJ0eXAiOi...&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE&gt;HTTP/1.1 200 OK
Content-Type: application/json; odata.metadata=minimal

{
  "@odata.context": "http://df-app-scus-redirect.analysis.windows.net/v1.0/myorg/groups/a4781858-f3ef-47c2-80a9-fa14845c833b/$metadata#gatewayDatasources",
  "value": [
    {
&lt;STRONG&gt;      "id": "2a0bca27-a496-450c-80e0-05790ad8875f",
&lt;/STRONG&gt;&lt;STRONG&gt;      "gatewayId": "d52ba684-afa8-484d-b5d5-790842b6ab9f",
&lt;/STRONG&gt;      "datasourceType": "Sql",
      "connectionDetails": "{"server":"server01.database.windows.net","database":"db01"}"
    }
  ]
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Using gateway id and data source id, you can set (or change) the credential of this data source as follows.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;PATCH https://api.powerbi.com/v1.0/myorg/gateways/d52ba684-afa8-484d-b5d5-790842b6ab9f/datasources/2a0bca27-a496-450c-80e0-05790ad8875f
Accept: application/json
Authorization: Bearer eyJ0eXAiOi...
Content-Type: application/json; charset=utf-8

{
  "credentialType": "Basic",
  "basicCredentials": {
    "username": "demouser",
    "password": "pass@word1"
  }
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE&gt;HTTP/1.1 200 OK&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The following changes&amp;nbsp;the connection string for the data source via rest api. (The data source id is also changed when you change the connection string.)&lt;BR /&gt;That is, you can import Power BI file and set the different connection string for each customer’s tenant.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;POST https://api.powerbi.com/v1.0/myorg/groups/a4781858-f3ef-47c2-80a9-fa14845c833b/datasets/44a12ee1-8da7-4383-a2cf-89129ef6e1a7/Default.SetAllConnections
Accept: application/json
Authorization: Bearer eyJ0eXAiOi...
Content-Type: application/json; charset=utf-8

{
  "connectionString": "data source=tsmatsuz-server2.database.windows.net;initial catalog=db02;persist security info=True;encrypt=True;trustservercertificate=False"
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE&gt;HTTP/1.1 200 OK&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 08:32:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Multi-Tenant-Embedded/m-p/333944#M9886</guid>
      <dc:creator>v-ljerr-msft</dc:creator>
      <dc:date>2018-01-08T08:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Tenant Embedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Multi-Tenant-Embedded/m-p/334386#M9898</link>
      <description>&lt;P&gt;Thank you! I will look into that&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 19:10:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Multi-Tenant-Embedded/m-p/334386#M9898</guid>
      <dc:creator>Nick_BI</dc:creator>
      <dc:date>2018-01-08T19:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Tenant Embedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Multi-Tenant-Embedded/m-p/383300#M11383</link>
      <description>&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a software tool that allows for multitenancy called Power Presenter.&amp;nbsp; It allows for the creation of roles and users with custom style and menus.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.bayesiantechnology.com/" target="_blank"&gt;http://www.bayesiantechnology.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 25 Mar 2018 20:06:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Multi-Tenant-Embedded/m-p/383300#M11383</guid>
      <dc:creator>jamesyoung</dc:creator>
      <dc:date>2018-03-25T20:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Tenant Embedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Multi-Tenant-Embedded/m-p/437561#M13507</link>
      <description>&lt;P&gt;What if I want a Multi Tenant Solution with Streaming Data. Then I don't have a PBIX file which contains all the reports and dashboards.&lt;/P&gt;&lt;P&gt;So far we've come to a solution of re-creating the dashboard/report in every workspace. This may work for 10 or so customers, but when we're looking at 50 or more, this is not a practical solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there another way to support multi tenancy with streaming data?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 06:56:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Multi-Tenant-Embedded/m-p/437561#M13507</guid>
      <dc:creator>joegei</dc:creator>
      <dc:date>2018-06-12T06:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Tenant Embedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Multi-Tenant-Embedded/m-p/2355579#M34576</link>
      <description>&lt;P&gt;This is currently still a subject on how to implement multitenancy.&lt;/P&gt;&lt;P&gt;The above solution doesn't really seem realistic, for every call to a report, api call to change datasource, while report being used by X clients, each having numerous users.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 09:57:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Multi-Tenant-Embedded/m-p/2355579#M34576</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-23T09:57:51Z</dc:date>
    </item>
  </channel>
</rss>

