<?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 Remove-PowerBIWorkspaceUser for service principals and aad groups in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Remove-PowerBIWorkspaceUser-for-service-principals-and-aad/m-p/2759959#M38565</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently developing a script for setting up customer workspaces. I make heavy use of the Power BI PowerShell cmdlets whereever possible - and if not REST-API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Addings members of type "App", "Group" and "ServicePrincipal"&amp;nbsp; with&amp;nbsp;&lt;SPAN&gt;Add-PowerBIWorkspaceUser is supported. But the removal of "Group" and "ServicePrincipal" via&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Remove-PowerBIWorkspaceUser is not. I can also find not the correct REST-API endpoint.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For each workspace permission role (Admin, Contributor, Member, Viewer) we are making use of AAD groups. ServicePrincipals are used to automate processes. The question is now: How to i remove those groups and principals once the assingment has changed via PowerShell?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pretty sure its just me having to much tomato soup ...&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;chwolff&lt;/P&gt;</description>
    <pubDate>Sun, 11 Sep 2022 00:28:04 GMT</pubDate>
    <dc:creator>chwolff</dc:creator>
    <dc:date>2022-09-11T00:28:04Z</dc:date>
    <item>
      <title>Remove-PowerBIWorkspaceUser for service principals and aad groups</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Remove-PowerBIWorkspaceUser-for-service-principals-and-aad/m-p/2759959#M38565</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently developing a script for setting up customer workspaces. I make heavy use of the Power BI PowerShell cmdlets whereever possible - and if not REST-API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Addings members of type "App", "Group" and "ServicePrincipal"&amp;nbsp; with&amp;nbsp;&lt;SPAN&gt;Add-PowerBIWorkspaceUser is supported. But the removal of "Group" and "ServicePrincipal" via&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Remove-PowerBIWorkspaceUser is not. I can also find not the correct REST-API endpoint.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For each workspace permission role (Admin, Contributor, Member, Viewer) we are making use of AAD groups. ServicePrincipals are used to automate processes. The question is now: How to i remove those groups and principals once the assingment has changed via PowerShell?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pretty sure its just me having to much tomato soup ...&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;chwolff&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2022 00:28:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Remove-PowerBIWorkspaceUser-for-service-principals-and-aad/m-p/2759959#M38565</guid>
      <dc:creator>chwolff</dc:creator>
      <dc:date>2022-09-11T00:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Remove-PowerBIWorkspaceUser for service principals and aad groups</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Remove-PowerBIWorkspaceUser-for-service-principals-and-aad/m-p/2760369#M38572</link>
      <description>&lt;P&gt;The process is slightly different for service principals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/groups/delete-user-in-group" target="_blank"&gt;Groups - Delete User In Group - REST API (Power BI Power BI REST APIs) | Microsoft Docs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2022 13:23:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Remove-PowerBIWorkspaceUser-for-service-principals-and-aad/m-p/2760369#M38572</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-09-11T13:23:07Z</dc:date>
    </item>
  </channel>
</rss>

