How can I create Teams local stored contacts with Graph API

Janice Lehmann 20 Reputation points
2023-12-01T15:37:11.3066667+00:00

I would like to create Teams contacts, that are only visible in the Teams Client. I know, it works, when you create it manually over the new GUI. Then you can not see the contact in your personalContacts.

I tested with the contacts, people and the contactFolders-endpoints.

But I was not able to get any contact, which I saw in Teams.

Where are this contacts stored and how can I access or them?

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,550 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,322 questions
{count} votes

Accepted answer
  1. Ran Hou-MSFT 7,485 Reputation points Microsoft Vendor
    2023-12-04T06:22:45.5466667+00:00

    Hi @Janice Lehmann

    Teams local stored contacts are contacts that are only visible in the Teams client, and not in the Outlook or other Microsoft apps. They are different from the personal contacts that you can access with the /me/contacts or /users/{id | userPrincipalName}/contacts endpoints.

    Unfortunately, there is no Graph API endpoint available to create Teams local stored contacts as of now. You can only create them manually through the Teams client interface. You can also not access or modify them with Graph API, as they are stored separately from the personal contacts. However, you can still use Graph API to create and manage personal contacts, contact folders, and contact groups.

    Meanwhile, to get this feature more quickly, we recommend you give the feedback in Teams UserVoice. Many features of our current products are designed and upgraded based on customers’ feedback. With requirements like this increase, the problem may well be released in the future.


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

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Akash Jadav 85 Reputation points Microsoft Vendor
    2023-12-03T09:29:25.4533333+00:00

    Hi,

    Please refer this documentation for creation of contacts using MS Graph API. To see the contacts Open teams -> Calls -> switch to Contacts tab -> All contacts added using Graph API are visible here. The same can be seen using Outlook -> People -> Your contacts.

    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