<?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 Datasets - Update Parameter Rest API in PowerBi throws 403 using Service Principal in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Datasets-Update-Parameter-Rest-API-in-PowerBi-throws-403-using/m-p/4114848#M54928</link>
    <description>&lt;P&gt;The Power BI REST APIs Get Refresh and Get Parameters operations work fine using a Service Principal. However, I'm encountering issues when updating parameters using a Service Principal, despite adding the necessary permissions/scopes to the App Registration (Dataset.Read.All and Dataset.ReadWrite.All).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Permission.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1155942i9A323D4313B0E916/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Permission.png" alt="Permission.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I need to update parameters using the Service Principal, but I'm getting 403 exceptions with the details below, and I'm unsure which permission I might be missing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; "Operation returned an invalid status code 'Forbidden'\n\n &amp;nbsp; at Microsoft.PowerBI.Api.DatasetsOperations.UpdateParametersInGroupWithHttpMessagesAsync(Guid groupId, String datasetId, UpdateMashupParametersRequest updateMashupParametersRequest, Dictionary`2 customHeaders, CancellationToken cancellationToken)\n &amp;nbsp; at Microsoft.PowerBI.Api.DatasetsOperationsExtensions.UpdateParametersAsync(IDatasetsOperations operations, Guid groupId, String datasetId, UpdateMashupParametersRequest updateMashupParametersRequest, CancellationToken cancellationToken)\n"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how I can resolve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Aug 2024 04:59:36 GMT</pubDate>
    <dc:creator>KarthikrajH01</dc:creator>
    <dc:date>2024-08-23T04:59:36Z</dc:date>
    <item>
      <title>Datasets - Update Parameter Rest API in PowerBi throws 403 using Service Principal</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Datasets-Update-Parameter-Rest-API-in-PowerBi-throws-403-using/m-p/4114848#M54928</link>
      <description>&lt;P&gt;The Power BI REST APIs Get Refresh and Get Parameters operations work fine using a Service Principal. However, I'm encountering issues when updating parameters using a Service Principal, despite adding the necessary permissions/scopes to the App Registration (Dataset.Read.All and Dataset.ReadWrite.All).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Permission.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1155942i9A323D4313B0E916/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Permission.png" alt="Permission.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I need to update parameters using the Service Principal, but I'm getting 403 exceptions with the details below, and I'm unsure which permission I might be missing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; "Operation returned an invalid status code 'Forbidden'\n\n &amp;nbsp; at Microsoft.PowerBI.Api.DatasetsOperations.UpdateParametersInGroupWithHttpMessagesAsync(Guid groupId, String datasetId, UpdateMashupParametersRequest updateMashupParametersRequest, Dictionary`2 customHeaders, CancellationToken cancellationToken)\n &amp;nbsp; at Microsoft.PowerBI.Api.DatasetsOperationsExtensions.UpdateParametersAsync(IDatasetsOperations operations, Guid groupId, String datasetId, UpdateMashupParametersRequest updateMashupParametersRequest, CancellationToken cancellationToken)\n"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how I can resolve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 04:59:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Datasets-Update-Parameter-Rest-API-in-PowerBi-throws-403-using/m-p/4114848#M54928</guid>
      <dc:creator>KarthikrajH01</dc:creator>
      <dc:date>2024-08-23T04:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Datasets - Update Parameter Rest API in PowerBi throws 403 using Service Principal</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Datasets-Update-Parameter-Rest-API-in-PowerBi-throws-403-using/m-p/4117596#M54962</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/796075"&gt;@KarthikrajH01&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on my research and understanding, 403-related error codes are usually associated with insufficient permissions or disabled admin settings. Could you please explain how the AAD token is generated? If it is generated by an AAD user, only dataset owner permissions should be required. However, if it is called by a service principal profile, more settings and permissions might be needed, and some admin settings may need to be enabled. You can refer to this document for more details:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal#step-3---enable-the-power-bi-service-admin-settings" target="_blank"&gt;Embed Power BI content in an embedded analytics application with service principal and an application secret - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can check the official documentation for a description of the 403 error message:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/troubleshoot-rest-api" target="_blank"&gt;Troubleshoot Power BI REST APIs - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the related document, you can view this content:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-gives-403-forbidden-use-service-principal/m-p/2317589" target="_blank"&gt;Solved: Power BI REST API gives 403 forbidden (use service... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Developer/Government-API-403-error-powerbi-gcc-endpoint-api-powerbigov-us/td-p/3580793" target="_blank"&gt;Solved: Government API 403 error: powerbi gcc endpoint ap... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/77111545/power-bi-rest-api-request-error-403-when-querying-the-dataset" target="_blank"&gt;access token - Power BI REST API request error 403 when querying the dataset - Stack Overflow&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 02:33:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Datasets-Update-Parameter-Rest-API-in-PowerBi-throws-403-using/m-p/4117596#M54962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-26T02:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Datasets - Update Parameter Rest API in PowerBi throws 403 using Service Principal</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Datasets-Update-Parameter-Rest-API-in-PowerBi-throws-403-using/m-p/4696353#M61235</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/796075"&gt;@KarthikrajH01&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Please update if you tried out the suggestoin and if you have found some soultion or anything ,&amp;nbsp;&lt;BR /&gt;I am facing the exact same Error , Your&amp;nbsp;&lt;STRONG&gt;response&amp;nbsp;&lt;/STRONG&gt;would be of great help .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 17:26:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Datasets-Update-Parameter-Rest-API-in-PowerBi-throws-403-using/m-p/4696353#M61235</guid>
      <dc:creator>Mahhin_Shahzad1</dc:creator>
      <dc:date>2025-05-16T17:26:21Z</dc:date>
    </item>
  </channel>
</rss>

