Microsoft Graph Response is 200 but return empty value

gabr brac 21 Reputation points
2023-05-04T15:58:33.9533333+00:00

I am using Microsoft Graph to obtain contacts in Azure. I am using this endpoint: https://graph.microsoft.com/v1.0/me/contacts And everything working as expected with 200 in response, but the value is empty. Do you have any idea?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,109 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vasil Michev 98,281 Reputation points MVP
    2023-05-04T17:17:15.1433333+00:00

    Null/empty response is valid for this endpoint, make sure the mailbox you're querying actually has some contacts stored. Or adjust any filters you might be using.


  2. msft-gu 1,350 Reputation points
    2023-05-04T19:01:11.15+00:00

    Hi @gabr brac

    Good afternoon and thank you for your question. Can I please know if the user account that your querying has contacts? I tested this on my two user accounts:

    • testaccountA -> No contacts
    • testaccountB -> 1 contact

    The result for testaccountA was "value": [ ]

    The result for testaccountB has value but for attributes that has no value, ie. companyname is null and others are blank.

    Please let me know if you have any other question or clarification and I'll get back to you. 😊