Skip to main content
listChannelMembers resolves a team and channel by exact name or ID, then lists the channel’s direct membership. This is especially useful for private or shared channels whose membership differs from the team.

Example

automations/list-private-channel-members.automation.ts

Inputs

team and channel are required exact display names or IDs. limit defaults to 100 and permits 1–10,000 across pages. Optional account selects a Microsoft binding.

Output

Returns TeamsMember[] 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.