<?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: Access Datasets using PowerBI REST API from Java in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Access-Datasets-using-PowerBI-REST-API-from-Java/m-p/939395#M22376</link>
    <description>&lt;P&gt;Was there a resultion for this issue.&amp;nbsp; &amp;nbsp;I am having the exact same problem.&amp;nbsp; All documented access has been given and still get unauthorized&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2020 17:22:27 GMT</pubDate>
    <dc:creator>ausgod</dc:creator>
    <dc:date>2020-02-19T17:22:27Z</dc:date>
    <item>
      <title>Access Datasets using PowerBI REST API from Java</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Access-Datasets-using-PowerBI-REST-API-from-Java/m-p/405320#M12117</link>
      <description>&lt;P&gt;I am trying&amp;nbsp;to access the rest API to refresh a dataset, and I am running into authorization problems.&amp;nbsp; I need to use an app registration from azure.&amp;nbsp; I create an Authorization context with my&amp;nbsp;client Id and secret, which works with other azure&amp;nbsp;services, but whatever I do I just get unauthorized.&amp;nbsp; Here are the details:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have assigned permissions in Azure AD to allow Power BI Service (Power BI), including '&lt;SPAN&gt;Read and Write all Datasets' and 'View all Datasets'.&amp;nbsp; When I try to access this rest endpoint, &lt;A href="https://api.powerbi.com/v1.0/myorg/datasets" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/datasets&lt;/A&gt;, I just get unauthorized.&amp;nbsp; Am I missing a step here?&amp;nbsp; I think I need to use this call first so that I can get the guid&amp;nbsp;of the dataset to refresh.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 16:10:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Access-Datasets-using-PowerBI-REST-API-from-Java/m-p/405320#M12117</guid>
      <dc:creator>absmiths</dc:creator>
      <dc:date>2018-04-26T16:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Access Datasets using PowerBI REST API from Java</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Access-Datasets-using-PowerBI-REST-API-from-Java/m-p/406592#M12123</link>
      <description>&lt;P&gt;You need to give the App the corresponding permission to access Power BI resources:&lt;/P&gt;&lt;P&gt;Follow the steps below:&lt;/P&gt;&lt;P&gt;Register an Azure AD app to embed Power BI content&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/register-app" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/developer/register-app&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Follow the Through Azure Portal part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Sun, 29 Apr 2018 01:10:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Access-Datasets-using-PowerBI-REST-API-from-Java/m-p/406592#M12123</guid>
      <dc:creator>v-micsh-msft</dc:creator>
      <dc:date>2018-04-29T01:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Access Datasets using PowerBI REST API from Java</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Access-Datasets-using-PowerBI-REST-API-from-Java/m-p/407262#M12138</link>
      <description>&lt;P&gt;I went through those steps a couple of different times, and it&amp;nbsp;hasn't worked.&amp;nbsp; I have tried creating a user using the pbi developer access page and using the azure ad portal directly.&amp;nbsp; I still only get an 'Unauthorized' response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One part I can't follow is granting&amp;nbsp;the AD permission "Access the directory as the signed in user".&amp;nbsp; My org&amp;nbsp;prohibits this but it doesn't&amp;nbsp;seem necessary anyway since I am not doing impersonation.&amp;nbsp; Also, in my case I am using a web API instead of a native application type.&amp;nbsp; Is this required for accessing the dataset refresh API?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 15:40:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Access-Datasets-using-PowerBI-REST-API-from-Java/m-p/407262#M12138</guid>
      <dc:creator>absmiths</dc:creator>
      <dc:date>2018-04-30T15:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Access Datasets using PowerBI REST API from Java</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Access-Datasets-using-PowerBI-REST-API-from-Java/m-p/939395#M22376</link>
      <description>&lt;P&gt;Was there a resultion for this issue.&amp;nbsp; &amp;nbsp;I am having the exact same problem.&amp;nbsp; All documented access has been given and still get unauthorized&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 17:22:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Access-Datasets-using-PowerBI-REST-API-from-Java/m-p/939395#M22376</guid>
      <dc:creator>ausgod</dc:creator>
      <dc:date>2020-02-19T17:22:27Z</dc:date>
    </item>
  </channel>
</rss>

