use People API to get implicit Contacts (from recent communication)

Aymeric Secret 0 Reputation points
2023-02-23T11:04:40.69+00:00

Hello,

I'm trying to get a full list of a user's contacts (saved contacts and not saved contacts from email, calendar ...).

I've used the people API for the second part (not saved contacts). But I receive almost no result. It seems like the relevance of some contacts prevents the api from sending them back to me.

Is there a way to retrieve all those implicit contacts (as named in the doc) put aside the relevance of the contact with the user ?

Thanks

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

1 answer

Sort by: Most helpful
  1. 2023-02-27T11:38:08.8866667+00:00

    Hi Aymeric Secret,

    To get a contact collection from the default contacts folder of the signed-in user:

    GET /users/{id | userPrincipalName}/contacts
    

    For more information: https://learn.microsoft.com/en-us/graph/api/user-list-contacts?view=graph-rest-1.0&tabs=http#http-request


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments