<?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 security AAD groups from Workspace in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Remove-security-AAD-groups-from-Workspace/m-p/2820336#M39083</link>
    <description>&lt;P&gt;I've been working on simple automation like adding aad users to aad groups and pbi workspaces. I can add users to workspace , even add groups to workspaces but I cannot remove the groups, although I can remove the users from the workspaces. I've been searching for a week now, but no-one came close. Did anyone figure out how to approach this through Powershell? thanks&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2022 16:09:16 GMT</pubDate>
    <dc:creator>mavhernandez</dc:creator>
    <dc:date>2022-10-05T16:09:16Z</dc:date>
    <item>
      <title>Remove security AAD groups from Workspace</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Remove-security-AAD-groups-from-Workspace/m-p/2820336#M39083</link>
      <description>&lt;P&gt;I've been working on simple automation like adding aad users to aad groups and pbi workspaces. I can add users to workspace , even add groups to workspaces but I cannot remove the groups, although I can remove the users from the workspaces. I've been searching for a week now, but no-one came close. Did anyone figure out how to approach this through Powershell? thanks&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 16:09:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Remove-security-AAD-groups-from-Workspace/m-p/2820336#M39083</guid>
      <dc:creator>mavhernandez</dc:creator>
      <dc:date>2022-10-05T16:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Remove security AAD groups from Workspace</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Remove-security-AAD-groups-from-Workspace/m-p/2821686#M39094</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/452036"&gt;@mavhernandez&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I know, we can remove the group or users from workspcae access.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_0-1665037361504.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/799197i83D2B92AE4976CD0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_0-1665037361504.png" alt="RicoZhou_0-1665037361504.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This function works well in my side, I can remove the security gourp scuccessfully.&lt;/P&gt;
&lt;P&gt;Or you can try to remove the user by Power BI Rest API.&lt;/P&gt;
&lt;P&gt;For reference:&amp;nbsp;&lt;A href="https://learn.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 Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This API call can be called by a service principal profile. For more information see:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-multi-tenancy" data-linktype="absolute-path" target="_blank"&gt;Service principal profiles in Power BI Embedded&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 06:27:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Remove-security-AAD-groups-from-Workspace/m-p/2821686#M39094</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-06T06:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Remove security AAD groups from Workspace</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Remove-security-AAD-groups-from-Workspace/m-p/2832289#M39162</link>
      <description>&lt;P&gt;Thanks Rico Zhou,&lt;BR /&gt;UI interaction also works for me. For the REST API not really much experience in that department yet, a sample how to execute it in python / powershell would be really great. I've&amp;nbsp; seen some sample on the internet however, there were nothing that removes the AAD security group from the workspace.&lt;BR /&gt;&lt;BR /&gt;Below is a sample of my ADD to workspace approach&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mavhernandez_0-1665444512315.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/801454i4AAD14CB89A2292C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mavhernandez_0-1665444512315.png" alt="mavhernandez_0-1665444512315.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and below is the one I am working on with PowerShell but no luck&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mavhernandez_1-1665444564922.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/801455i74D90AE9889314C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mavhernandez_1-1665444564922.png" alt="mavhernandez_1-1665444564922.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 23:29:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Remove-security-AAD-groups-from-Workspace/m-p/2832289#M39162</guid>
      <dc:creator>mavhernandez</dc:creator>
      <dc:date>2022-10-10T23:29:43Z</dc:date>
    </item>
  </channel>
</rss>

