> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# List channel members

> List direct members and owners of a Microsoft Teams channel.

`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

```ts automations/list-private-channel-members.automation.ts theme={null}
import { automation } from "automate.ax"
import { listChannelMembers } from "automate.ax/teams"

export default automation("List leadership channel members", () => {
  listChannelMembers({ team: "Engineering", channel: "Leadership", limit: 100 })
})
```

## 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.
