Graph API Error: Unexpected segment DynamicPathSegment. Expected property/$value.

Narendra Kandula 5 Reputation points
2024-09-30T09:59:00.4933333+00:00

We have received an error while using the Graph API search query via Terraform. The exact error message is "Request_BadRequest: Unexpected segment DynamicPathSegment. Expected property/$value." To resolve this, we have tried pinning to provider version 2.53.1. and it seems to be working as a workaround. Please see the error image attached.

i9h87d7w

I am also wondering if there is an ongoing bug or hotfix with the Entra ID APIs that prevent identity and group lookups.

I stumbled across this GitHub issue: https://github.com/hashicorp/terraform-provider-azuread/issues/1498.

If there is a bug, can anyone provide information about ETA and details?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
{count} vote

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.