Inconsistent behavior of Graph Api when on contact get by id

Zarko Petrovic 40 Reputation points
2023-09-15T13:39:32.9066667+00:00

If i query Graph Api with ID of contact that doesn't exist in my Outlook contacts I am getting Error 404:

{
    "error": {
        "code": "ErrorNonExistentMailbox",
        "message": "No mailbox with such guid."
    }
}

But if I use ID of the contact that exists in my organization (one of my colleagues Outlook contact's ID) I am getting 503 - Service Unavailable Error :

User's image

That behavior is inconsistent and could cause errors when trying to sync contacts using Graph Api.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,043 questions
{count} votes

Your answer

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