简体   繁体   English

Microsoft Teams Graph API 列出成员

[英]Microsoft Teams Graph API List members

When using the microsoft teams graph api to get list of members in a team, I'm also getting the owner names as part of the list.当使用 microsoft 团队图 api 获取团队中的成员列表时,我还将所有者名称作为列表的一部分。 Is there any easy way to get just the members?有什么简单的方法可以只获得会员吗? Currently I'm using a complicated method of making two graph calls, one for owners and another for members and then manually comparing and eliminating owners from the member list.目前我正在使用一种复杂的方法进行两次图形调用,一个用于所有者,另一个用于成员,然后手动比较并从成员列表中删除所有者。

If you have a Bot as part of your project, then instead of using the Graph you can use the latest release of the Bot Framework to get the relevant people.如果您将 Bot 作为项目的一部分,那么您可以使用最新版本的 Bot Framework 来获取相关人员,而不是使用 Graph。 See the V4.9 release note of the bot framework, which state:请参阅 bot 框架的V4.9 发行说明,其中 state:

The TeamsChannelAccount object has been updated to include userRole (one of owner, member, or guest) and tenantId (for the user's tenantId). TeamsChannelAccount object 已更新为包括 userRole(所有者、成员或来宾之一)和tenantId(用于用户的tenantId)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Microsoft Teams 中使用 Microsoft Graph API 列出私人团队频道成员 - List private team channel members with Microsoft Graph API in Microsoft Teams Microsoft Teams Graph API - 列出外部聊天的成员时,无法获取姓名 - Microsoft Teams Graph API - When list members of an external chat, can not get name Microsoft Graph API:团队应用程序 - 使用“团队 ID”“列出频道成员”的问题 - Microsoft Graph API: Teams App - Problem with "List members of a channel" using "team id" Microsoft Teams Graph Explorer:如何在“发送频道消息”API 中提及频道成员? - Microsoft Teams Graph Explorer: how to mention channel members in "send channel message" API? 使用Graph API响应Microsoft Teams中的漫游器调用 - Respond to a bot call in Microsoft Teams with Graph API 如何使用图表API在MS Teams中将成员添加为组或邮件列表 - How to add members as a group or mail list in MS Teams using graph API Microsoft Teams Graph api - 获取呼叫 ID - Microsoft Teams Graph api - getting call id 图表 API:Microsoft Teams 频道中应用的 ContentUrl - Graph API: ContentUrl of apps in Microsoft Teams Channel Microsoft Teams Graph API:向团队添加频道失败并显示404 - Microsoft Teams Graph API: Add channel to teams is failing with a 404 如何使用 Microsoft Graph API 获取 Teams 中的活动 PSTN 呼叫列表 - How to get a list of active PSTN calls in Teams using the Microsoft Graph API
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM