Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

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-PowerBIRes...
  • Anonymous's avatar
    Anonymous
    3 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 Get

     

    Regards,

    Max