Skip to main content
teams.addTeamMember adds and returns a direct team member.

Example

automations/teams-add-team-member.automation.ts

Inputs

Pass team as an exact display name or provider ID and provide the Microsoft Entra userId. roles defaults to an empty array for a regular member; use ["owner"] for an owner. The optional second argument { account } selects a Microsoft binding.

Output

Adds and returns a direct team member. Microsoft Graph IDs are opaque and should be passed through unchanged.