Share via

Why I get empty array in respose to People API in Microsoft Graph?

Aleksei Vershinin 1 Reputation point
2021-08-05T15:53:47.587+00:00

Hello. I'm trying to get list of peope using People API in Microsoft Graph.
$persons = $graph->createRequest('GET', '/me/people')
->execute();

But I receive empty array as response.
I have some recent emails in my emailbox and I need to find all the contacts I sent an email, or all contact that has sent email to me?
Is it possible todo by People API, or maybe with some another API?

thank you

Community Center | Not monitored

Your answer

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