Forum Discussion
Mats_Warnolf
Apr 15, 2019Copper Contributor
Get-AzureADUser -searchstring error: Request_UnsupportedQuery
Doing some PowerShell scripting and ran into a problem using
Get-AzureADUser -SearchString "[Really anything here]"
Last week it was fine. I have not updated my AzureADPreview module. Today my search errors out with a Request_UnsupportedQuery with the following message: Unsupported or invalid query filter clause specified for property 'userState' of resource 'User'.
Can anyone confirm or deny this as a local problem (ie, a problem on my machine vs a problem you can replicate on your machine)?
Using AzureADPreview 2.0.2.17
- Brandon SheaBrass ContributorThis is fixed with the latest release of the AzureADPreview module.
- Josh VaderCopper Contributor
- Brandon SheaBrass Contributor
Josh Vader you should be able to update that any time by running Update-Module as an administrator in PowerShell.
- SjoerdVIron Contributor
Same problem with AzureADPreview 2.0.2.17 modules
- Tilo SCopper Contributorsame for me,
was working in: 2.0.1.16
Broke in 2.0.2.16- Tilo SCopper Contributorworkaround for me:
Import-Module azuread -MaximumVersion "2.0.1.16"
- Brandon SheaBrass ContributorFYI, this fix is slated to be released in the last week of May.
- Mats_WarnolfCopper ContributorOh! Great. Tell me how you know this?
- Eric SchnabelCopper ContributorI believe he had a premier case open on this.
- Brandon SheaBrass Contributor
Mats_Warnolf I'm seeing the same problem for the past couple days. I have a case open with Microsoft, but they're still investigating at this time. I've tested with both the current AzureAD module and the current AzureADPreview module, same result either way.
- Mats_WarnolfCopper ContributorThank you. Please update this thread with any information you get.
- Brandon SheaBrass Contributor
Mats_Warnolf No update so far, but my ticket is sitting with the AzureAD PowerShell Product Group. I'll reply back again whenever we get resolution on the issue.
Yup, same issue here.