How to retrieve another user's MS Teams chats with the Microsoft Graph API?

一笑奈何 提交于 2020-07-19 04:11:26

问题


As a global administrator I'm attempting to retrieve the list of MS Teams chats for a different user, however no matter which id I pass to GET /beta/users/{id}/chats the response is always the list of chats for the authenticated user. How do you get the list of chats for a different user?

The API documentation (https://docs.microsoft.com/en-us/graph/api/chat-list?view=graph-rest-beta&tabs=http) suggests that I should be able to call GET /beta/me/chats to retrieve the list of my chats and GET /beta/users/{id}/chats to retrieve the list of someone else's chats.

Through experimentation I've noticed that I can pass any string for {id} and the request always succeeds with response 200 OK, but with my list of chats.


回答1:


Retrieving the list of chats that another user is a part of isn't currently supported, that's why Application level permissions aren't supported.



来源:https://stackoverflow.com/questions/57301313/how-to-retrieve-another-users-ms-teams-chats-with-the-microsoft-graph-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!