Forum Discussion

juxnpxblo's avatar
juxnpxblo
Copper Contributor
Jul 22, 2022

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 won't be able to get the specific Teams list of contacts of a user

Can someone please confirm this to me and perhaps give me suggestions of some other alternatives?

  • juxnpxblo - 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.



Resources