Forum Discussion

Agathiyan's avatar
Agathiyan
Copper Contributor
Feb 13, 2026

Is principalId Always a GUID in Microsoft Graph ??

{

    "error": {

        "code": "Request_BadRequest",

        "message": "Invalid GUID:HR",

        "innerError": {

            "date": "2026-02-13T06:44:24",

            "request-id": "87678d90-1d94-4131-a705-4356ad3568a4",

            "client-request-id": "63569c7b-1dea-42d4-8d72-aa3668c78418"

        }

    }

}

We’re encountering an issue with the Microsoft Graph API response for directoryRole

Recently, one of our Graph API calls started returning a response where the principalId value appears to be a custom string instead of the expected GUID. In our code, we loop through each id from the delta response, assuming it will always be a valid GUID. However, we are now getting errors because one of the returned principalId values does not match the expected format.

Our questions:

  1. Is it possible for Microsoft Graph API to return a custom string instead of a GUID for principalId?
  2. Has anyone experienced similar behavior with delta queries for directoryRole or any other object?
  3. Are there any known scenarios where the principalId format differs from the standard GUID?

Any insights would be appreciated.

No RepliesBe the first to reply