<?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 Unable update Datasource Credentials using credential type as OAuth2 using Power BI Rest API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Unable-update-Datasource-Credentials-using-credential-type-as/m-p/1142000#M24024</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;While trying to update a Datasource credentials&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;for&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;oAuth&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;authentication&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;using the Power BI Rest API, it throws an error&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;saying the credentials are invalid.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;The credentials provided for the Web source are invalid.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(&lt;A title="https://docs.microsoft.com/en-us/rest/api/power-bi/gateways/updatedatasource#oauth2-credentials-example" href="https://docs.microsoft.com/en-us/rest/api/power-bi/gateways/updatedatasource#oauth2-credentials-example" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/gateways/updatedatasource#oauth2-credentials-example&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As shown in this documentation&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it requires an access token&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;to be passed while using the API to change the data source credentials.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;It is not clear as to what type of access token needs to be used for this and how to generate the same&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help would be appreciated plus official documentation needs to be updated to include more details related to generation of access token.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OAuth.png" style="width: 972px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/288453iA3F8D33B0A401F97/image-size/large?v=v2&amp;amp;px=999" role="button" title="OAuth.png" alt="OAuth.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jun 2020 13:34:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-06-04T13:34:27Z</dc:date>
    <item>
      <title>Unable update Datasource Credentials using credential type as OAuth2 using Power BI Rest API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-update-Datasource-Credentials-using-credential-type-as/m-p/1142000#M24024</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;While trying to update a Datasource credentials&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;for&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;oAuth&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;authentication&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;using the Power BI Rest API, it throws an error&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;saying the credentials are invalid.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;The credentials provided for the Web source are invalid.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(&lt;A title="https://docs.microsoft.com/en-us/rest/api/power-bi/gateways/updatedatasource#oauth2-credentials-example" href="https://docs.microsoft.com/en-us/rest/api/power-bi/gateways/updatedatasource#oauth2-credentials-example" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/gateways/updatedatasource#oauth2-credentials-example&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As shown in this documentation&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it requires an access token&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;to be passed while using the API to change the data source credentials.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;It is not clear as to what type of access token needs to be used for this and how to generate the same&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help would be appreciated plus official documentation needs to be updated to include more details related to generation of access token.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OAuth.png" style="width: 972px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/288453iA3F8D33B0A401F97/image-size/large?v=v2&amp;amp;px=999" role="button" title="OAuth.png" alt="OAuth.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 13:34:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-update-Datasource-Credentials-using-credential-type-as/m-p/1142000#M24024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-04T13:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable update Datasource Credentials using credential type as OAuth2 using Power BI Rest API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-update-Datasource-Credentials-using-credential-type-as/m-p/1959699#M30540</link>
      <description>&lt;P&gt;Any succes with fixing this? I'm running into the same problem, need to update oauth2 credentials via the API for my dataset connection to a SharePoint file.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 11:03:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-update-Datasource-Credentials-using-credential-type-as/m-p/1959699#M30540</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-15T11:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable update Datasource Credentials using credential type as OAuth2 using Power BI Rest API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-update-Datasource-Credentials-using-credential-type-as/m-p/2170354#M32723</link>
      <description>&lt;P&gt;Same here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FDeveloper%2FAccessUnauthorized-on-Mashup-engine-using-Gateways-Update%2Fm-p%2F2165740%23M32689&amp;amp;data=04%7C01%7Cstefano.giovinetti%40delaware.pro%7Cb871e3ffa8be4cca6bdd08d99d0eff5f%7C17b35a1d057c4ac5a15a08758f7a7064%7C0%7C0%7C637713510007270037%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=G2sdLgal9pabLCOYg2%2FZh7KSDihKnjgVCKuMAGLMBAs%3D&amp;amp;reserved=0" target="_blank"&gt;Re: AccessUnauthorized on Mashup engine using Gateways - Update Datasource API&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 09:55:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-update-Datasource-Credentials-using-credential-type-as/m-p/2170354#M32723</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-03T09:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unable update Datasource Credentials using credential type as OAuth2 using Power BI Rest API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-update-Datasource-Credentials-using-credential-type-as/m-p/2230107#M33368</link>
      <description>&lt;P&gt;Here what worked for me:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Developer/AccessUnauthorized-on-Mashup-engine-using-Gateways-Update/m-p/2158106" target="_blank"&gt;https://community.powerbi.com/t5/Developer/AccessUnauthorized-on-Mashup-engine-using-Gateways-Update/m-p/2158106&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 10:53:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-update-Datasource-Credentials-using-credential-type-as/m-p/2230107#M33368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-09T10:53:47Z</dc:date>
    </item>
  </channel>
</rss>

