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.
Microsoft Graph Response is 200 but return empty value

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?
2 answers
Sort by: Most helpful
-
-
msft-gu 395 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. 😊