<?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: Unauthorised when using Get-PowerBIWorkspace in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Unauthorised-when-using-Get-PowerBIWorkspace/m-p/3638031#M48752</link>
    <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/672050"&gt;@cokiedo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would appear that your account does not have access to view all the workspaces.&lt;BR /&gt;Confirm with your admin that your account is part of the Power BI Admin Group.&lt;/P&gt;
&lt;P&gt;Refer to:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Service/Can-t-access-entire-organizational-datasets-using-powershell/m-p/2214856" target="_blank"&gt;Solved: Can't access entire organizational datasets using ... - Microsoft Fabric Community&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/Service/Get-PowerBIActivityEvent-throws-Unauthorized-error-though-I-am/m-p/895522" target="_blank"&gt;Solved: Get-PowerBIActivityEvent - throws Unauthorized err... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Service/Operation-returned-an-invalid-status-code-Unauthorized-at/m-p/2397026" target="_blank"&gt;Operation returned an invalid status code 'Unautho... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Developer/Service-Principle-cannot-Get-PowerBIWorkspace/m-p/2315614" target="_blank"&gt;Solved: Service Principle cannot Get-PowerBIWorkspace - Microsoft Fabric Community&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, 15 Jan 2024 02:43:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-01-15T02:43:09Z</dc:date>
    <item>
      <title>Unauthorised when using Get-PowerBIWorkspace</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unauthorised-when-using-Get-PowerBIWorkspace/m-p/3636441#M48743</link>
      <description>&lt;P&gt;I am connecting to powerbi service the following command but get an unauthorised message.&amp;nbsp; Which specific api permissions are needed to be able to retrieve PowerbiWorkspace.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Connect-PowerBIServiceAccount -CertificateThumbprint $CertThumbprint -ApplicationId $Appid -Tenant $TenantID -ServicePrincipal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-PowerBIWorkspace : Operation returned an invalid status code 'Unauthorized'&lt;BR /&gt;At line:2 char:14&lt;BR /&gt;+ $workspace = Get-PowerBIWorkspace -Name $workspaceName&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : WriteError: (Microsoft.Power...owerBIWorkspace:GetPowerBIWorkspace) [Get-PowerBIWorkspace], HttpOperationException&lt;BR /&gt;+ FullyQualifiedErrorId : Operation returned an invalid status code 'Unauthorized',Microsoft.PowerBI.Commands.Workspaces.GetPowerBIWorkspace&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have setup these api permissions already:&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="cokiedo_0-1705080770016.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1024792i3D9F157F116E065B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cokiedo_0-1705080770016.png" alt="cokiedo_0-1705080770016.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 17:33:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unauthorised-when-using-Get-PowerBIWorkspace/m-p/3636441#M48743</guid>
      <dc:creator>cokiedo</dc:creator>
      <dc:date>2024-01-12T17:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unauthorised when using Get-PowerBIWorkspace</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unauthorised-when-using-Get-PowerBIWorkspace/m-p/3638031#M48752</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/672050"&gt;@cokiedo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would appear that your account does not have access to view all the workspaces.&lt;BR /&gt;Confirm with your admin that your account is part of the Power BI Admin Group.&lt;/P&gt;
&lt;P&gt;Refer to:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Service/Can-t-access-entire-organizational-datasets-using-powershell/m-p/2214856" target="_blank"&gt;Solved: Can't access entire organizational datasets using ... - Microsoft Fabric Community&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/Service/Get-PowerBIActivityEvent-throws-Unauthorized-error-though-I-am/m-p/895522" target="_blank"&gt;Solved: Get-PowerBIActivityEvent - throws Unauthorized err... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Service/Operation-returned-an-invalid-status-code-Unauthorized-at/m-p/2397026" target="_blank"&gt;Operation returned an invalid status code 'Unautho... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Developer/Service-Principle-cannot-Get-PowerBIWorkspace/m-p/2315614" target="_blank"&gt;Solved: Service Principle cannot Get-PowerBIWorkspace - Microsoft Fabric Community&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, 15 Jan 2024 02:43:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unauthorised-when-using-Get-PowerBIWorkspace/m-p/3638031#M48752</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-15T02:43:09Z</dc:date>
    </item>
  </channel>
</rss>

