Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
SravaniReddy22
New Member

removing the bulk groups from bulk power bi workspaces

How to remove bulk groups from bulk workspaces using power bi rest api in postman. 

 

4 REPLIES 4
Anonymous
Not applicable

Hi @SravaniReddy22 ,

 

You can try using powershell for this.


These cmdlets are provided in the PowerShell library and can be installed in an elevated PowerShell session:

Install-Module -Name MicrosoftPowerBIMgmt


Alternatively, you can install individual modules (depending on your needs) instead of rollup modules, e.g. if you only need the Workspaces module:

Install-Module -Name MicrosoftPowerBIMgmt.Workspaces

 

You can use the following syntax to remove a specified user's permissions to a Power BI workspace.

Remove-PowerBIWorkspaceUser
      [-Scope <PowerBIUserScope>]
      -Id <Guid>
      -UserPrincipalName <String>
      [<CommonParameters>]

 

Remove-PowerBIWorkspaceUser
      [-Scope <PowerBIUserScope>]
      -UserPrincipalName <String>
      -Workspace <Workspace>
      [<CommonParameters>]

 

Removes the specified user's permissions to the Power BI workspace using the supplied inputs and the specified scope. Make sure you are logged in with Connect-PowerBIServiceAccount before running this command.

 

Download link: GitHub - microsoft/powerbi-powershell: PowerShell community for Microsoft PowerBI. Here you will fin...
Reference: Remove-PowerBIWorkspaceUser (MicrosoftPowerBIMgmt.Workspaces) | Microsoft Learn

 

 

Best Regards,

Clara Gong

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.

lbendlin
Super User
Super User

groups and workspaces are the same thing. Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?

Yes, here Group is nothing but workspace. But in my senario. I have to remove the user groups( not worspaces) from workspace. like group means PBI_DEVELOPER and PBI_VIEWER groups. 

You cannot remove in bulk. Needs to be done with individual calls.

 

Groups - Delete User In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors