invite_team_member
Add users to teams with configurable invitation methods. Send email invitations for manual acceptance or auto-accept without emails, while assigning specific roles and payment permissions.
Instructions
Invite a user to become a member of a specific team
The sendAnInvitationEmail flag controls how the invitation works:
If False (default): No email is sent and the invitation is automatically accepted
If True: An email invitation is sent and the user can accept or decline
Args: team_id: The ID of the team to invite the member to (required) user_id: Your user ID (required) name: The name of the user to invite (required) email: The email address of the user to invite (required) account_roles: List of role assignments with 'roleId' and 'accounts' array (required) can_manage_payment: Whether the user can manage payment settings (default: False) send_invitation_email: Whether to send an email invitation (default: False)
Returns: Invitation object with member details and status
Example: invite_team_member( team_id="1443", user_id="1451", name="John Doe", email="john@company.com", account_roles=[ { "roleId": "6eb0c288-0a17-4f6c-88a3-bb750b34d7ca", "accounts": [1028] } ], can_manage_payment=False, send_invitation_email=True )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team_id | Yes | ||
| user_id | Yes | ||
| name | Yes | ||
| Yes | |||
| account_roles | Yes | ||
| can_manage_payment | No | ||
| send_invitation_email | No |