<?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: Forbidden 403 error for datasets/group through REST API (postman) in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Forbidden-403-error-for-datasets-group-through-REST-API-postman/m-p/182698#M5854</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/30979"&gt;@mani1215&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am creating oAuth token with below request payload and getting oAuth bearer token. When i use that token to list data sets, groups, add rows to dataset tables, we are getting the 403 Forbidden access.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;POST&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://login.windows.net/common/oauth2/token" target="_blank"&gt;https://login.windows.net/common/oauth2/token&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;grant_type :&amp;nbsp;client_credentials&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;resource:&amp;nbsp;&lt;A href="https://analysis.windows.net/powerbi/api" target="_blank"&gt;https://analysis.windows.net/powerbi/api&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;client_secret: XXXX&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;client_id: XXXX&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This issue is blocking us to update data set tables data, do we have any documentation to get oAuth beare token from REST API (postman)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Mani&lt;/SPAN&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/30979"&gt;@mani1215&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Based on my test, the token from grant_type "client-credentials" doesn't work. Try to use grant_type: password, the token&amp;nbsp;works in my test.&lt;/P&gt;</description>
    <pubDate>Fri, 26 May 2017 03:10:27 GMT</pubDate>
    <dc:creator>Eric_Zhang</dc:creator>
    <dc:date>2017-05-26T03:10:27Z</dc:date>
    <item>
      <title>Forbidden 403 error for datasets/group through REST API (postman)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Forbidden-403-error-for-datasets-group-through-REST-API-postman/m-p/181855#M5853</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating oAuth token with below request payload and getting oAuth bearer token. When i use that token to list data sets, groups, add rows to dataset tables, we are getting the 403 Forbidden access.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;POST&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://login.windows.net/common/oauth2/token" target="_blank"&gt;https://login.windows.net/common/oauth2/token&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;grant_type :&amp;nbsp;client_credentials&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;resource:&amp;nbsp;&lt;A href="https://analysis.windows.net/powerbi/api" target="_blank"&gt;https://analysis.windows.net/powerbi/api&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;client_secret: XXXX&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;client_id: XXXX&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This issue is blocking us to update data set tables data, do we have any documentation to get oAuth beare token from REST API (postman)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mani&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 20:18:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Forbidden-403-error-for-datasets-group-through-REST-API-postman/m-p/181855#M5853</guid>
      <dc:creator>mani1215</dc:creator>
      <dc:date>2017-05-24T20:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Forbidden 403 error for datasets/group through REST API (postman)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Forbidden-403-error-for-datasets-group-through-REST-API-postman/m-p/182698#M5854</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/30979"&gt;@mani1215&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am creating oAuth token with below request payload and getting oAuth bearer token. When i use that token to list data sets, groups, add rows to dataset tables, we are getting the 403 Forbidden access.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;POST&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://login.windows.net/common/oauth2/token" target="_blank"&gt;https://login.windows.net/common/oauth2/token&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;grant_type :&amp;nbsp;client_credentials&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;resource:&amp;nbsp;&lt;A href="https://analysis.windows.net/powerbi/api" target="_blank"&gt;https://analysis.windows.net/powerbi/api&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;client_secret: XXXX&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;client_id: XXXX&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This issue is blocking us to update data set tables data, do we have any documentation to get oAuth beare token from REST API (postman)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Mani&lt;/SPAN&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/30979"&gt;@mani1215&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Based on my test, the token from grant_type "client-credentials" doesn't work. Try to use grant_type: password, the token&amp;nbsp;works in my test.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 03:10:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Forbidden-403-error-for-datasets-group-through-REST-API-postman/m-p/182698#M5854</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-05-26T03:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Forbidden 403 error for datasets/group through REST API (postman)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Forbidden-403-error-for-datasets-group-through-REST-API-postman/m-p/223221#M7049</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&amp;nbsp;I am able to make it work with UserNamePassword Credential but unable to communicate with the Power BI service with clientCredential. Below is my code snippet. credential is of type UserPasswordCredential and creds is of type ClientCredential, instantiated with clientID and client secret.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&amp;nbsp;authenticationContext&amp;nbsp;&lt;SPAN&gt;=&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;new&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;AuthenticationContext&lt;/SPAN&gt;(&lt;SPAN&gt;"https://login.windows.net/common/oauth2/authorize/"&lt;/SPAN&gt;);
&lt;SPAN&gt;//var&amp;nbsp;authenticationResult&amp;nbsp;=&amp;nbsp;await&amp;nbsp;authenticationContext.AcquireTokenAsync("https://analysis.windows.net/powerbi/api",&amp;nbsp;clientId,&amp;nbsp;credential);&lt;/SPAN&gt;
&lt;SPAN&gt;var&lt;/SPAN&gt;&amp;nbsp;authenticationResult&amp;nbsp;&lt;SPAN&gt;=&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;await&lt;/SPAN&gt;&amp;nbsp;authenticationContext&lt;SPAN&gt;.&lt;/SPAN&gt;AcquireTokenAsync(&lt;SPAN&gt;"https://analysis.windows.net/powerbi/api"&lt;/SPAN&gt;,&amp;nbsp;creds);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;We would like to use the ClientCredential just to make sure we don't have to update the password every 3 months(governed by policies)&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 17:16:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Forbidden-403-error-for-datasets-group-through-REST-API-postman/m-p/223221#M7049</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-01T17:16:33Z</dc:date>
    </item>
  </channel>
</rss>

