Forum Discussion

Mats_Warnolf's avatar
Mats_Warnolf
Copper Contributor
Apr 15, 2019

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 Shea's avatar
    Brandon Shea
    Brass 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_Warnolf's avatar
      Mats_Warnolf
      Copper Contributor
      Thank you. Please update this thread with any information you get.
      • Brandon Shea's avatar
        Brandon Shea
        Brass 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.

  • Tilo S's avatar
    Tilo S
    Copper Contributor
    same for me,
    was working in: 2.0.1.16
    Broke in 2.0.2.16
    • Tilo S's avatar
      Tilo S
      Copper Contributor
      workaround for me:

      Import-Module azuread -MaximumVersion "2.0.1.16"
  • SjoerdV's avatar
    SjoerdV
    Iron Contributor

    Same problem with AzureADPreview 2.0.2.17 modules

     

      • Brandon Shea's avatar
        Brandon Shea
        Brass Contributor

        Josh Vader you should be able to update that any time by running Update-Module as an administrator in PowerShell.

Resources