<?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: PowerBI API Developer &amp;amp; application &amp;quot;ClientID&amp;quot; and &amp;quot;ClientSecret&amp;quot; in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-Developer-amp-application-quot-ClientID-quot-and/m-p/268500#M8160</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/37844"&gt;@shaunwilks&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will try to keep the question as simple as possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are using the API within our "On premise" application. We have registered our application in Azurre and have a ClientId and Secret for our application.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Our application is sold to and used by our clients, each in their own domain, each on premise.&lt;/P&gt;
&lt;P&gt;When they use the API within our application they log into their PowerBI Pro accounts to consume their reports/dashboards.&lt;/P&gt;
&lt;P&gt;They are is what is classed as "User owns data" in all the API samples online.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question.&lt;/P&gt;
&lt;P&gt;In this scenario - Is it correct that we only require 1 single Client ID for all our clients ? That the ClientID and Secret we are using in our development that allows us to view our own content, is the same CLientID and Seceret that would be used by the application when it goes to access our clients PowerBi cotent.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;We dont need to register the application or have our clients register the application and get unique client ids and secrets per each one of our clients do we ?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It was always my understanding our product has 1 single "ClientID" and "Client Secret".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone using our application to consume powerbi content needs to provide the application permissions when they first go to use that appplication, but nothing more - they dont need a clientid of their own for our application.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone please clarify ?&lt;/P&gt;
&lt;P&gt;Thankyou in advance&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Edit&lt;/P&gt;
&lt;P&gt;===================================================================&lt;/P&gt;
&lt;P&gt;Confirmed with some Azure AD experts, it is possible.&lt;/P&gt;
&lt;P&gt;The AAD application registered by you will be listed in Azure portal-&amp;gt;Azure AD-&amp;gt;App registrations.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 501px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/63313iDF30159DDBBD2142/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When one other than the registered app owner accesses the application, a pop-up window would appear to consent permissions.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 473px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/63315i1951B214717F6EC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After clicking "Accept" button, the registered App will be &lt;STRONG&gt;copied&lt;/STRONG&gt; to the logging users Azure portal-&amp;gt;Azure AD-&amp;gt;Enterprise Application&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 466px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/63317i30D5DFA147DDDF23/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;==================================================================================&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/37844"&gt;@shaunwilks&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;My test shows it possible. I tried to access the one "User Owns data" application with different accounts from different tenants, and the embedded report varies according to the account logged in.&amp;nbsp;There's no problem when using the same clientid and secret, it looks the registered AAD app can be shared.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since this is actually an Azure AD question, for more clarfication, I'd suggest you post in the dedicated &lt;A href="https://social.technet.microsoft.com/forums/azure/en-US/home?forum=windowsazureaditpro" target="_self"&gt;AAD forum&lt;/A&gt;, there're more experts and you'll get better response.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Oct 2017 09:20:55 GMT</pubDate>
    <dc:creator>Eric_Zhang</dc:creator>
    <dc:date>2017-10-05T09:20:55Z</dc:date>
    <item>
      <title>PowerBI API Developer &amp; application "ClientID" and "ClientSecret"</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-Developer-amp-application-quot-ClientID-quot-and/m-p/266214#M8115</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try to keep the question as simple as possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using the API within our "On premise" application. We have registered our application in Azurre and have a ClientId and Secret for our application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our application is sold to and used by our clients, each in their own domain, each on premise.&lt;/P&gt;&lt;P&gt;When they use the API within our application they log into their PowerBI Pro accounts to consume their reports/dashboards.&lt;/P&gt;&lt;P&gt;They are is what is classed as "User owns data" in all the API samples online.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question.&lt;/P&gt;&lt;P&gt;In this scenario - Is it correct that we only require 1 single Client ID for all our clients ? That the ClientID and Secret we are using in our development that allows us to view our own content, is the same CLientID and Seceret that would be used by the application when it goes to access our clients PowerBi cotent.&lt;/P&gt;&lt;P&gt;We dont need to register the application or have our clients register the application and get unique client ids and secrets per each one of our clients do we ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It was always my understanding our product has 1 single "ClientID" and "Client Secret".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone using our application to consume powerbi content needs to provide the application permissions when they first go to use that appplication, but nothing more - they dont need a clientid of their own for our application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please clarify ?&lt;/P&gt;&lt;P&gt;Thankyou in advance&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 05:25:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-Developer-amp-application-quot-ClientID-quot-and/m-p/266214#M8115</guid>
      <dc:creator>shaunwilks</dc:creator>
      <dc:date>2017-10-03T05:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI API Developer &amp; application "ClientID" and "ClientSecret"</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-Developer-amp-application-quot-ClientID-quot-and/m-p/268500#M8160</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/37844"&gt;@shaunwilks&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will try to keep the question as simple as possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are using the API within our "On premise" application. We have registered our application in Azurre and have a ClientId and Secret for our application.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Our application is sold to and used by our clients, each in their own domain, each on premise.&lt;/P&gt;
&lt;P&gt;When they use the API within our application they log into their PowerBI Pro accounts to consume their reports/dashboards.&lt;/P&gt;
&lt;P&gt;They are is what is classed as "User owns data" in all the API samples online.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question.&lt;/P&gt;
&lt;P&gt;In this scenario - Is it correct that we only require 1 single Client ID for all our clients ? That the ClientID and Secret we are using in our development that allows us to view our own content, is the same CLientID and Seceret that would be used by the application when it goes to access our clients PowerBi cotent.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;We dont need to register the application or have our clients register the application and get unique client ids and secrets per each one of our clients do we ?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It was always my understanding our product has 1 single "ClientID" and "Client Secret".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone using our application to consume powerbi content needs to provide the application permissions when they first go to use that appplication, but nothing more - they dont need a clientid of their own for our application.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone please clarify ?&lt;/P&gt;
&lt;P&gt;Thankyou in advance&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Edit&lt;/P&gt;
&lt;P&gt;===================================================================&lt;/P&gt;
&lt;P&gt;Confirmed with some Azure AD experts, it is possible.&lt;/P&gt;
&lt;P&gt;The AAD application registered by you will be listed in Azure portal-&amp;gt;Azure AD-&amp;gt;App registrations.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 501px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/63313iDF30159DDBBD2142/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When one other than the registered app owner accesses the application, a pop-up window would appear to consent permissions.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 473px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/63315i1951B214717F6EC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After clicking "Accept" button, the registered App will be &lt;STRONG&gt;copied&lt;/STRONG&gt; to the logging users Azure portal-&amp;gt;Azure AD-&amp;gt;Enterprise Application&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 466px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/63317i30D5DFA147DDDF23/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;==================================================================================&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/37844"&gt;@shaunwilks&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;My test shows it possible. I tried to access the one "User Owns data" application with different accounts from different tenants, and the embedded report varies according to the account logged in.&amp;nbsp;There's no problem when using the same clientid and secret, it looks the registered AAD app can be shared.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since this is actually an Azure AD question, for more clarfication, I'd suggest you post in the dedicated &lt;A href="https://social.technet.microsoft.com/forums/azure/en-US/home?forum=windowsazureaditpro" target="_self"&gt;AAD forum&lt;/A&gt;, there're more experts and you'll get better response.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 09:20:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-Developer-amp-application-quot-ClientID-quot-and/m-p/268500#M8160</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-10-05T09:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI API Developer &amp; application "ClientID" and "ClientSecret"</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-Developer-amp-application-quot-ClientID-quot-and/m-p/272580#M8221</link>
      <description>&lt;P&gt;Thanks very much Eric - your efforts are really appreciated.&amp;nbsp; Ive tried posting in the Technet Azure forum you provided a link to and its down and not accepting new threads just at the moment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question I had (and excuse me if it sounds basic) but in regards to your comment&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"After clicking "Accept" button, the registered App will be&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;copied&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;to the logging users Azure portal-&amp;gt;Azure AD-&amp;gt;Enterprise Application"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Segoe UI, sans-serif"&gt;The logging in user would be a PowerBi Pro account. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Segoe UI, sans-serif"&gt;So when you say the registered app will be copied to their "&lt;SPAN&gt;Azure portal-&amp;gt;Azure AD-&amp;gt;Enterprise Application" is their Azure portal automatcailly configured for them if they only held a powerbi pro user account ? They may never nor ever want to go to the Azure AD portal and just want to be a BI User.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Segoe UI, sans-serif"&gt;&lt;SPAN&gt;Is the Azure AD account and portal auto created for them when they have a PowerBI Pro account ?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Oct 2017 23:05:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-Developer-amp-application-quot-ClientID-quot-and/m-p/272580#M8221</guid>
      <dc:creator>shaunwilks</dc:creator>
      <dc:date>2017-10-08T23:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI API Developer &amp; application "ClientID" and "ClientSecret"</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-Developer-amp-application-quot-ClientID-quot-and/m-p/288385#M8468</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/37844"&gt;@shaunwilks&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thanks very much Eric - your efforts are really appreciated.&amp;nbsp; Ive tried posting in the Technet Azure forum you provided a link to and its down and not accepting new threads just at the moment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The question I had (and excuse me if it sounds basic) but in regards to your comment&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"After clicking "Accept" button, the registered App will be&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;copied&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;to the logging users Azure portal-&amp;gt;Azure AD-&amp;gt;Enterprise Application"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Segoe UI, sans-serif"&gt;The logging in user would be a PowerBi Pro account. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Segoe UI, sans-serif"&gt;So when you say the registered app will be copied to their "&lt;SPAN&gt;Azure portal-&amp;gt;Azure AD-&amp;gt;Enterprise Application" is their Azure portal automatcailly configured for them if they only held a powerbi pro user account ? They may never nor ever want to go to the Azure AD portal and just want to be a BI User.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Segoe UI, sans-serif"&gt;&lt;SPAN&gt;Is the Azure AD account and portal auto created for them when they have a PowerBI Pro account ?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/37844"&gt;@shaunwilks&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;It is automatically. They don't do more things than clicking "accept".&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 00:45:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-Developer-amp-application-quot-ClientID-quot-and/m-p/288385#M8468</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-10-24T00:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI API Developer &amp; application "ClientID" and "ClientSecret"</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-Developer-amp-application-quot-ClientID-quot-and/m-p/288393#M8469</link>
      <description>&lt;P&gt;We have used the sample at &lt;A href="https://github.com/Microsoft/PowerBI-Developer-Samples/tree/master/User%20Owns%20Data" target="_blank"&gt;https://github.com/Microsoft/PowerBI-Developer-Samples/tree/master/User%20Owns%20Data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The sample is working well and accesses content without a problem, when the user logging in to PowerBI is part of our Azure AD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However we want the application to access user PowerBI Pro content external to our Azure AD. Numerous sources online suggest this shouldn’t be a problem.&amp;nbsp;Using the sample though whenever the users accounts are external to our AD – outside our organisation – a “Bad Request” message is returned using the sample you posted.&amp;nbsp;The only way the error is removed is if we force the external user to register for their own ClientID and Secret – which clearly we do not wish to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In summary.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The Application, ClientID and Secret are to reside inside our Azure AD account example @companyA&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Users from any organisation outside of Domain A, are to use the application to consume their own PowerBI content.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The Reports and Dashboards and data would all reside in the PowerBI user who logs in. Eg user@companyz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the sample solution you ran up were you accessing reports that only existing in the external users powerbi account ?&lt;/P&gt;&lt;P&gt;Id love to see your sample solution if you still had it available for use to see differences between the solution from github posted below and yours.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that could be provided or source posted that would be terrific - thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 01:00:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-API-Developer-amp-application-quot-ClientID-quot-and/m-p/288393#M8469</guid>
      <dc:creator>shaunwilks</dc:creator>
      <dc:date>2017-10-24T01:00:55Z</dc:date>
    </item>
  </channel>
</rss>

