<?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 get access token for powerbi embedded from azure throws invalid credential error in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/get-access-token-for-powerbi-embedded-from-azure-throws-invalid/m-p/596911#M18164</link>
    <description>&lt;P&gt;I am trying to get access token from azure using rest api.&lt;/P&gt;&lt;P&gt;I have registered the APP in azure, also the user&amp;nbsp; exists in Azure active directory with&lt;STRONG&gt; User role.&lt;/STRONG&gt;&amp;nbsp;(user account is organization account)&lt;/P&gt;&lt;P&gt;Getting the below error when I&amp;nbsp; use the rest api. Can someone help me with this. Thanks&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"statusCode":400,"body":"{\"error\":\"unauthorized_client\",\"error_description\":\"AADSTS70002: Error validating credentials.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;POST: https://login.microsoftonline.com/common/oauth2/token
data: {
    grant_type: password
    scope: openid
    resource: https://analysis.windows.net/powerbi/api
    client_id: {Client ID}
    username: {PBI Account Username}
    password: {PBI Account Username}
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jan 2019 13:30:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-01-08T13:30:33Z</dc:date>
    <item>
      <title>get access token for powerbi embedded from azure throws invalid credential error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/get-access-token-for-powerbi-embedded-from-azure-throws-invalid/m-p/596911#M18164</link>
      <description>&lt;P&gt;I am trying to get access token from azure using rest api.&lt;/P&gt;&lt;P&gt;I have registered the APP in azure, also the user&amp;nbsp; exists in Azure active directory with&lt;STRONG&gt; User role.&lt;/STRONG&gt;&amp;nbsp;(user account is organization account)&lt;/P&gt;&lt;P&gt;Getting the below error when I&amp;nbsp; use the rest api. Can someone help me with this. Thanks&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"statusCode":400,"body":"{\"error\":\"unauthorized_client\",\"error_description\":\"AADSTS70002: Error validating credentials.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;POST: https://login.microsoftonline.com/common/oauth2/token
data: {
    grant_type: password
    scope: openid
    resource: https://analysis.windows.net/powerbi/api
    client_id: {Client ID}
    username: {PBI Account Username}
    password: {PBI Account Username}
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 13:30:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/get-access-token-for-powerbi-embedded-from-azure-throws-invalid/m-p/596911#M18164</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-08T13:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: get access token for powerbi embedded from azure throws invalid credential error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/get-access-token-for-powerbi-embedded-from-azure-throws-invalid/m-p/597549#M18172</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;Please refer to&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Developer/Get-token-of-report/td-p/591960" target="_self"&gt;Developer/Get-token-of-report&lt;/A&gt;. It has almost the same issue. You can find a solution there. The POST URL seems wrong at the first glance.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Dale&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 08:53:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/get-access-token-for-powerbi-embedded-from-azure-throws-invalid/m-p/597549#M18172</guid>
      <dc:creator>v-jiascu-msft</dc:creator>
      <dc:date>2019-01-09T08:53:14Z</dc:date>
    </item>
  </channel>
</rss>

