<?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 Using PowerShell to add myself as an admin to an ex employees personal workspace in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Using-PowerShell-to-add-myself-as-an-admin-to-an-ex-employees/m-p/2242333#M33484</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In PowerShell using:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Add-PowerBIWorkspaceUser -Scope Organization -Id a12345bc-d123-1a23-a12b-ab012345cd6e -UserEmailAddress a.user@bcompany.com -AccessRight Admin&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;And getting the error :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;warning: only preview workspaces are support when -scope organization is specified&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
    <pubDate>Thu, 16 Dec 2021 11:48:44 GMT</pubDate>
    <dc:creator>David_Evans</dc:creator>
    <dc:date>2021-12-16T11:48:44Z</dc:date>
    <item>
      <title>Using PowerShell to add myself as an admin to an ex employees personal workspace</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-PowerShell-to-add-myself-as-an-admin-to-an-ex-employees/m-p/2242333#M33484</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In PowerShell using:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Add-PowerBIWorkspaceUser -Scope Organization -Id a12345bc-d123-1a23-a12b-ab012345cd6e -UserEmailAddress a.user@bcompany.com -AccessRight Admin&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;And getting the error :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;warning: only preview workspaces are support when -scope organization is specified&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 11:48:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-PowerShell-to-add-myself-as-an-admin-to-an-ex-employees/m-p/2242333#M33484</guid>
      <dc:creator>David_Evans</dc:creator>
      <dc:date>2021-12-16T11:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using PowerShell to add myself as an admin to an ex employees personal workspace</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-PowerShell-to-add-myself-as-an-admin-to-an-ex-employees/m-p/2247007#M33549</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="272773" data-lia-user-login="David_Evans" class="lia-mention lia-mention-user"&gt;David_Evans&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Compare your code and the offical sample code, I think your code is correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Add-PowerBIWorkspaceUser -Scope Organization -Id 23FCBDBD-A979-45D8-B1C8-6D21E0F4BE50 -UserEmailAddress john@contoso.com -AccessRight Admin&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please make sure what kind of workspace are you trying to add user by Power Shell.&amp;nbsp; According to your statement, you are trying to adding yourself to other user's Personal Workspace as an admin. Power BI doesn't support us to add other users in&amp;nbsp;Personal Workspace.&lt;/P&gt;
&lt;P&gt;Your workspace needs to be an app workspace: &lt;A href="https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-create-workspaces" target="_self"&gt;classic workspace&lt;/A&gt; or &lt;A href="https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-create-the-new-workspaces" target="_self"&gt;new workspace&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Then you can add users in Power BI Service manually or add users by Power Shell.&lt;/P&gt;
&lt;P&gt;Here is an offical blog about how to add user in Classic Workspace or New Workspace by Power Shell.&lt;/P&gt;
&lt;P&gt;For reference:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/powershell/module/microsoftpowerbimgmt.workspaces/add-powerbiworkspaceuser?view=powerbi-ps" target="_self"&gt;Add-PowerBIWorkspaceUser&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 07:54:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-PowerShell-to-add-myself-as-an-admin-to-an-ex-employees/m-p/2247007#M33549</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-20T07:54:11Z</dc:date>
    </item>
  </channel>
</rss>

