> ## 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 team members

> List direct members and owners of a Microsoft Team.

`listTeamMembers` lists the direct membership of one joined team.

## Example

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

export default automation("List Engineering members", () => {
  listTeamMembers({ team: "Engineering", limit: 500 })
})
```

## Inputs

`team: string` is an exact display name or ID. Optional `limit` defaults to 100
and accepts 1–10,000; `account` defaults to the project Microsoft binding.

## Output

Returns members with `memberId`, `roles` (default `[]`), and optional
`displayName`, `email`, `tenantId`, `userId`, and `visibleHistoryStartAt`.
`memberId` is the conversation membership ID; use `userId` when another Graph
operation expects an Entra user ID.
