- last edited on
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 184.108.40.206
04-19-2019 06:48 AM
@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.
04-24-2019 09:50 AM
@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.
05-05-2019 06:00 AM
05-07-2019 06:46 AM
It's crazy that this issue is still an issue for multiple versions of the AzureAD module. I thought it was only occurring for the past week, but it's looking closer to a month now. I had tested 220.127.116.11, .16, and .17 before I found this, all with the same issue. Interestingly the MSOL module version 18.104.22.168 still works. I know it's lazy, but I've been using it to search by SearchString, then taking the object id and pumping it into Get-AzureADUser.
Get-AzureADUser -ObjectId $(Get-MsolUser -SearchString firstname.lastname@example.org).ObjectID
07-22-2019 01:52 PM
@Brandon Shea Where would one fine the official AzureADPreview to download?
22.214.171.124 is still broke
07-22-2019 02:23 PM
@Josh Vader you should be able to update that any time by running Update-Module as an administrator in PowerShell.