teams.listChannelMembers returns a channel’s direct members after resolving the team and channel by exact name or ID. Private and shared channel membership can differ from team membership.
Example
automations/list-private-channel-members.automation.ts
Inputs
listTeamsChannelMembers requires exact display names or IDs for team and channel. limit defaults to 100 and permits 1–10,000 across pages. Optional second argument { account } selects a Microsoft binding.
Output
ReturnsTeamsMember[] with memberId, roles, and available display name, email, tenant, user ID, and visible-history start time. Missing and ambiguous team or channel names fail with the matching IDs when available.