Get-AzADUser -Search fails on pagination #17667
Labels
AAD
AzAd cmdlets in Az.Resources
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Milestone
Description
If a Search returns paginated results, FollowingNextLink gets corrupted
We have more then 100 users with "konsulent" in the job title. When quering these, the first barch is returned, but the the query fails on the nextLink run.
Expected result is a list of more then 100 users
Actual result is an error
From the debug result it is clear, that the nextLink uri is wrong:
https://graph.microsoft.com/v1.0/users?$search=""JobTitle%3aKonsulent""&$skiptoken=m~AQAnOzU4NTg0MGQzOTJkZDRiNTc5YmUxMzZlYzJiMjZmMTVjOzswOzA7
If I remove the double quotation and query this uri:
https://graph.microsoft.com/v1.0/users?$search="JobTitle%3aKonsulent"&$skiptoken=m~AQAnOzU4NTg0MGQzOTJkZDRiNTc5YmUxMzZlYzJiMjZmMTVjOzswOzA7
I get the next batch of users.Issue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: