<?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: Encountering 401/403 errors while using the Power BI REST API with PowerShell and Power Automate in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Encountering-401-403-errors-while-using-the-Power-BI-REST-API/m-p/3576639#M47971</link>
    <description>&lt;P&gt;Try the call in the API sandbox&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/update-parameters-in-group" target="_blank"&gt;Datasets - Update Parameters In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Dec 2023 02:18:56 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2023-12-11T02:18:56Z</dc:date>
    <item>
      <title>Encountering 401/403 errors while using the Power BI REST API with PowerShell and Power Automate</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Encountering-401-403-errors-while-using-the-Power-BI-REST-API/m-p/3563884#M47970</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 865px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1005351i1ACA265733128480/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Used the HTTP action to invoke an Power BI Rest API for updating parameters of a particular dataset in a workspace but keep getting the 401/403 error codes while trying to run the flow. Tried do this same action in Power Shell as well using Power BI cmdlet but getting the same error codes, any help on how to tackle these errors or any better way to automatically update parameters in a Power BI report are helpful. Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2023 00:34:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Encountering-401-403-errors-while-using-the-Power-BI-REST-API/m-p/3563884#M47970</guid>
      <dc:creator>Amar_vm</dc:creator>
      <dc:date>2023-12-02T00:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Encountering 401/403 errors while using the Power BI REST API with PowerShell and Power Automate</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Encountering-401-403-errors-while-using-the-Power-BI-REST-API/m-p/3576639#M47971</link>
      <description>&lt;P&gt;Try the call in the API sandbox&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/update-parameters-in-group" target="_blank"&gt;Datasets - Update Parameters In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 02:18:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Encountering-401-403-errors-while-using-the-Power-BI-REST-API/m-p/3576639#M47971</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-12-11T02:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Encountering 401/403 errors while using the Power BI REST API with PowerShell and Power Automate</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Encountering-401-403-errors-while-using-the-Power-BI-REST-API/m-p/3578064#M47972</link>
      <description>&lt;P&gt;Tried an example over there and the API call went through without error, but getting the 403 error in Power Automate. The user is the dataset owner in both the cases.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 17:11:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Encountering-401-403-errors-while-using-the-Power-BI-REST-API/m-p/3578064#M47972</guid>
      <dc:creator>Amar_vm</dc:creator>
      <dc:date>2023-12-11T17:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Encountering 401/403 errors while using the Power BI REST API with PowerShell and Power Automate</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Encountering-401-403-errors-while-using-the-Power-BI-REST-API/m-p/3578182#M47973</link>
      <description>&lt;P&gt;dataset owner may not be enough. That call may require workspace level permissions.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 18:57:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Encountering-401-403-errors-while-using-the-Power-BI-REST-API/m-p/3578182#M47973</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-12-11T18:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Encountering 401/403 errors while using the Power BI REST API with PowerShell and Power Automate</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Encountering-401-403-errors-while-using-the-Power-BI-REST-API/m-p/3584547#M47974</link>
      <description>&lt;P&gt;How do we check and edit those permissions? Currently using an embeded app created in Azure AD for the API is there some other way?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 19:25:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Encountering-401-403-errors-while-using-the-Power-BI-REST-API/m-p/3584547#M47974</guid>
      <dc:creator>Amar_vm</dc:creator>
      <dc:date>2023-12-14T19:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Encountering 401/403 errors while using the Power BI REST API with PowerShell and Power Automate</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Encountering-401-403-errors-while-using-the-Power-BI-REST-API/m-p/3584551#M47975</link>
      <description>&lt;P&gt;you can check the token scope with jwt.io but I don't think that's the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a Pro license you can open a Pro ticket at &lt;A href="https://admin.powerplatform.microsoft.com/newsupportticket/powerbi" target="_blank"&gt;https://admin.powerplatform.microsoft.com/newsupportticket/powerbi&lt;/A&gt;&lt;BR /&gt;Otherwise you can raise an issue at &lt;A href="https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues&lt;/A&gt; .&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 19:28:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Encountering-401-403-errors-while-using-the-Power-BI-REST-API/m-p/3584551#M47975</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-12-14T19:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Encountering 401/403 errors while using the Power BI REST API with PowerShell and Power Automate</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Encountering-401-403-errors-while-using-the-Power-BI-REST-API/m-p/3621912#M47980</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/655027"&gt;@Amar_vm&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;This is a Power BI Rest API issue, not a Mobile App issue, next time if you encounter such a problem, please feel free to ask in the Developer forum, thank you!&lt;/P&gt;
&lt;P&gt;If you post in the right forum, it will help you to get the solution quickly.&lt;/P&gt;
&lt;P&gt;I have forwarded this post to Developer Forum, please know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to my research and understanding, 401/403 related error return codes are usually related to insufficient privileges or disabled admin settings, if it's convenient can you show how the AAD token is generated for you to run this rest API? If it is generated by AAD user, it should only need dataset owner permission, if it is called by a service principal profile, it may need more settings and permissions, you also need to open some admin settings, you can refer to this document&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" aria-label="Link Embed Power BI content in an embedded analytics application with service principal and an application secret - Power BI | Microsoft Learn" 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;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, 08 Jan 2024 08:53:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Encountering-401-403-errors-while-using-the-Power-BI-REST-API/m-p/3621912#M47980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-08T08:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Encountering 401/403 errors while using the Power BI REST API with PowerShell and Power Automate</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Encountering-401-403-errors-while-using-the-Power-BI-REST-API/m-p/3631489#M48625</link>
      <description>&lt;P&gt;Does it work in the API sandbox?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/update-parameters" target="_blank"&gt;Datasets - Update Parameters - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 23:10:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Encountering-401-403-errors-while-using-the-Power-BI-REST-API/m-p/3631489#M48625</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-01-10T23:10:35Z</dc:date>
    </item>
  </channel>
</rss>

