[英]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.