<?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 Rest API Update Datasource UseCallerAADIdentity or UseEndUserOAuth2Credentials not working in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Rest-API-Update-Datasource-UseCallerAADIdentity-or/m-p/762726#M20309</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have the following issue, we want to update the data source credentials using the REST API. When updating the credentials we want to enable the checkbox "End users use their own OAuth2 credentials when accessing the data source via Direct Query".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OAuth2PowerBI.PNG" style="width: 451px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/184044iFE26A31D2EB915C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="OAuth2PowerBI.PNG" alt="OAuth2PowerBI.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When making the REST call using the C# library or postman we receive the following error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Specifying UseCallerOAuthIdentity requires credential type to be OAuth2&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;URL&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/gateways/{gatewayid}/datasources/{datasourceid" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/gateways/{gatewayid}/datasources/{datasourceid&lt;/A&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Body&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;BR /&gt;"credentialDetails":{&lt;BR /&gt;"credentialType":"&lt;STRONG&gt;OAuth2&lt;/STRONG&gt;",&lt;BR /&gt;"credentials":"{\"credentialData\":[{\"name\":\"accessToken\",\"value\":\"eyJ0e...\" } ] }",&lt;BR /&gt;"encryptedConnection":"Encrypted",&lt;BR /&gt;"encryptionAlgorithm":"None",&lt;BR /&gt;"privacyLevel":"None",&lt;BR /&gt;"useCallerAADIdentity":true&lt;BR /&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When we don't try to check the checkbox the credentials are updating succesfully.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2019 09:32:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-08-09T09:32:58Z</dc:date>
    <item>
      <title>Rest API Update Datasource UseCallerAADIdentity or UseEndUserOAuth2Credentials not working</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Rest-API-Update-Datasource-UseCallerAADIdentity-or/m-p/762726#M20309</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have the following issue, we want to update the data source credentials using the REST API. When updating the credentials we want to enable the checkbox "End users use their own OAuth2 credentials when accessing the data source via Direct Query".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OAuth2PowerBI.PNG" style="width: 451px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/184044iFE26A31D2EB915C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="OAuth2PowerBI.PNG" alt="OAuth2PowerBI.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When making the REST call using the C# library or postman we receive the following error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Specifying UseCallerOAuthIdentity requires credential type to be OAuth2&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;URL&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/gateways/{gatewayid}/datasources/{datasourceid" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/gateways/{gatewayid}/datasources/{datasourceid&lt;/A&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Body&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;BR /&gt;"credentialDetails":{&lt;BR /&gt;"credentialType":"&lt;STRONG&gt;OAuth2&lt;/STRONG&gt;",&lt;BR /&gt;"credentials":"{\"credentialData\":[{\"name\":\"accessToken\",\"value\":\"eyJ0e...\" } ] }",&lt;BR /&gt;"encryptedConnection":"Encrypted",&lt;BR /&gt;"encryptionAlgorithm":"None",&lt;BR /&gt;"privacyLevel":"None",&lt;BR /&gt;"useCallerAADIdentity":true&lt;BR /&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When we don't try to check the checkbox the credentials are updating succesfully.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 09:32:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Rest-API-Update-Datasource-UseCallerAADIdentity-or/m-p/762726#M20309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-09T09:32:58Z</dc:date>
    </item>
  </channel>
</rss>

