Forum Discussion
Anonymous
3 years agoNot 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 GetI 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.InvokePowerBIRestMethodI am not entirely sure why this error is coming up? Any Ideas?
Thanks in advance!
Regards,
Max
- Anonymous3 years ago
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 GetRegards,
Max
1 Reply
- AnonymousNot 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 GetRegards,
Max