<?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: PowerShell: Get-PowerBIWorkspace - Users-property is empty in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Get-PowerBIWorkspace-Users-property-is-empty/m-p/1736530#M28525</link>
    <description>&lt;P&gt;Tried this with correct parameters - does not work.&lt;BR /&gt;I always get a "WriteError"-Exception.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom-CK_0-1616411281175.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/479046i6AD962DB1410F760/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom-CK_0-1616411281175.png" alt="Tom-CK_0-1616411281175.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Mar 2021 11:08:14 GMT</pubDate>
    <dc:creator>Tom-CK</dc:creator>
    <dc:date>2021-03-22T11:08:14Z</dc:date>
    <item>
      <title>PowerShell: Get-PowerBIWorkspace - Users-property is empty</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Get-PowerBIWorkspace-Users-property-is-empty/m-p/1734179#M28502</link>
      <description>&lt;P&gt;I run the folling code:&lt;/P&gt;&lt;P&gt;Connect-PowerBIServiceAccount -Credential $cred&lt;/P&gt;&lt;P&gt;#($cred contains a user with "Administrator" priviliges in the workspace)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ws = Get-PowerBIWorkspace | Where-Object {$_.Name -eq "[My Workspace name here]"&lt;/P&gt;&lt;P&gt;#$ws contains a valid object referring to the desired workspace&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ws.Users&amp;nbsp; &amp;nbsp; #THIS IS NULL / EMPTY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried several optins, but I could not get the users of the workspace.&lt;/P&gt;&lt;P&gt;Modul-Version is 1.0.946.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I query all users having permissions to the workspace ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Mar 2021 12:09:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Get-PowerBIWorkspace-Users-property-is-empty/m-p/1734179#M28502</guid>
      <dc:creator>Tom-CK</dc:creator>
      <dc:date>2021-03-20T12:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell: Get-PowerBIWorkspace - Users-property is empty</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Get-PowerBIWorkspace-Users-property-is-empty/m-p/1736160#M28521</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/287629"&gt;@Tom-CK&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this&amp;nbsp;command.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Connect-PowerBIServiceAccount -Tenant [TenantId] -ServicePrincipal -Credential (Get-Credential)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Lionel Chen&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 09:11:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Get-PowerBIWorkspace-Users-property-is-empty/m-p/1736160#M28521</guid>
      <dc:creator>v-lionel-msft</dc:creator>
      <dc:date>2021-03-22T09:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell: Get-PowerBIWorkspace - Users-property is empty</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Get-PowerBIWorkspace-Users-property-is-empty/m-p/1736530#M28525</link>
      <description>&lt;P&gt;Tried this with correct parameters - does not work.&lt;BR /&gt;I always get a "WriteError"-Exception.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom-CK_0-1616411281175.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/479046i6AD962DB1410F760/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom-CK_0-1616411281175.png" alt="Tom-CK_0-1616411281175.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 11:08:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Get-PowerBIWorkspace-Users-property-is-empty/m-p/1736530#M28525</guid>
      <dc:creator>Tom-CK</dc:creator>
      <dc:date>2021-03-22T11:08:14Z</dc:date>
    </item>
  </channel>
</rss>

