Microsoft Graph Response is 200 but return empty value

gabr brac 21 Reputation points

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

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,647 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
1,295 questions
Microsoft Graph Contacts API
Microsoft Graph Contacts API
A Microsoft API that lets you assign categories contacts, as well as events, messages, tasks, and group posts in a consistent way to enhance organization and discovery.
70 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vasil Michev 70,486 Reputation points MVP

    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 395 Reputation points

    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. 😊