Is there a Graph API for Teams App to fetch the list of people under chats/channels/people/frequently shared to/recent locations sections, similiar to the functionality used for "Share to Teams" control

Godhwani, Naina 41 Reputation points
2022-09-23T13:38:39.413+00:00

Hi Team,
We are working on Teams App with share to chat and create tab functionality.
For this App, we are currently using ‘/me/people’ Graph API in Teams App to display the list of people to chat with or to share links.
 
We have few observations while using this API as listed below,

  1. ‘/me/people’ API does not instantly reflect newly created users or updates to existing users (Like change in name, job Title etc.) It takes around 48hours or more for the newly created user to appear in the list or for the updates to the existing users to reflect.
  2. As per the ‘/me/people’ API documentation, If we don't pass any value for  query parameter "top", By default 10 records should be returned. However when we did not pass any value for query parameter "top" (https://graph.microsoft.com/v1.0/me/people) or if we explicitly pass the value for "top" as 10 (https://graph.microsoft.com/v1.0/me/people?$top=10), only 7 records were returned. Total users we have are around 25.
  3. /me/people API returns a single list with relevant users which is not split into sections like chats/channels/people/frequently shared to/recent locations.
     
    Hence, we wanted to check If there is any Graph API which has similar functionality to the one used in Share to Teams control, here  ‘https://teams.microsoft.com/share?', invokes  https://substrate.office.com/search/api/v1/suggestions . This retrieves the chats/channels/people/frequently shared to/recent locations, which is more helpful.
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,485 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Shweta Choudhary 601 Reputation points Microsoft Employee
    2022-10-06T12:07:51.413+00:00

    For points 1&2, Can you please share your timestamp and request id to debug the scenario better.

    For point 3, AFAIK, there is no such API today. Being said that, Please consider filing user voice for your specific ask so that it could be considered for future implementations.


  2. AriesTriputranto-8894 1 Reputation point
    2022-10-11T09:29:12.827+00:00