Forum Discussion
juxnpxblo
Jul 22, 2022Copper Contributor
is it possible to get the specific Teams contacts list of a user?
I've searched a lot and apparently with the Microsoft Graph API we can get the organization contacts/users list and the default contacts list of a user across Office 365 as well, but I am afraid I wo...
Prasad_Das-MSFT
Microsoft
Jul 25, 2022juxnpxblo - You can use below API to get all the contacts in a user's default Contacts folder:
GET https://graph.microsoft.com/v1.0/me/contacts
GET https://graph.microsoft.com/v1.0/users/{id | userPrincipalName}/contacts
Also, to get contacts in a specific folder in the user's mailbox use below API query:
GET https://graph.microsoft.com/v1.0/me/contactfolders/{Id}/contacts
GET https://graph.microsoft.com/v1.0/me/contactfolders/{Id}/contacts GET /users/{id |userPrincipalName}/contactfolders/{id}/contacts
Please refer List contacts - Microsoft Graph v1.0 | Microsoft Docs
Thanks,
Prasad Das
----------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.