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 m...
Brandon Shea
Apr 19, 2019Brass 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
Apr 20, 2019Copper Contributor
Thank you. Please update this thread with any information you get.
- Brandon SheaApr 24, 2019Brass 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.
- Brandon SheaMay 05, 2019Brass ContributorNo real update at this time, but the problem has been isolated to the Graph interface. The ticket has been routed to that team for additional troubleshooting.
- Eric SchnabelMay 07, 2019Copper Contributor
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 2.0.2.15, .16, and .17 before I found this, all with the same issue. Interestingly the MSOL module version 1.1.183.8 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 name@domain.tld).ObjectID