I'm using PowerShell to connect to Azure AD. I need to get a list of specific users whose accounts are not in a particular team.
To enter my tenant, I used cmdlet Connect-AzureAD. To get users I have to use the cmdlet Get-AzureADUser. I'm using -Filter along with it to get a list of those specific users.
I'm using a cmdlet like this:
Get-AzureADUser -Filter "Team ne 'Development' "
But I'm getting an error like this:
Get-AzureADUser : Error occured while executing GetUsers
Code: Request_UnsupportedQuery
HttpStatusCode : BadRequest
HttpStatusDescription: BadRequest
HttpResponseStatus: Completed
What am I doing wrong? Can anyone help me out

