简体   繁体   中英

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. 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. See the V4.9 release note of the bot framework, which state:

The TeamsChannelAccount object has been updated to include userRole (one of owner, member, or guest) and tenantId (for the user's tenantId).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM