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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

PowerShell - Admin - Groups GetGroupsAsAdmin

Hi All,

 

While running below command in PowerShell:

Invoke-PowerBIRestMethod -Url "/admin/groups?$filter=state eq 'Deleted'&$top=10" -Method Get

I am recieving below error:

Invoke-PowerBIRestMethod : One or more errors occurred.
At line:1 char:1
+ Invoke-PowerBIRestMethod -Url "/admin/groups?$filter=state eq 'Delete ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (Microsoft.Power...werBIRestMethod:InvokePowerBIRestMethod) [Invoke-PowerBIRestMe 
   thod], AggregateException
    + FullyQualifiedErrorId : One or more errors occurred.,Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod

I am not entirely sure why this error is coming up? Any Ideas?

 

Thanks in advance!

 

Regards,

Max

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I was able to find a solution:

$URI = '/admin/groups?$top=50&' + '$filter=type ne' + " 'Workspace'" + ' and state eq' + " 'Deleted'" 
Invoke-PowerBIRestMethod -Url $URI -Method Get

 

Regards,

Max

View solution in original post

1 REPLY 1
Anonymous
Not applicable

I was able to find a solution:

$URI = '/admin/groups?$top=50&' + '$filter=type ne' + " 'Workspace'" + ' and state eq' + " 'Deleted'" 
Invoke-PowerBIRestMethod -Url $URI -Method Get

 

Regards,

Max

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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 Kudoed Authors