addUsersToTeam
Attempts to Add, Invite, or email users about joining a team depending on the requesting user's permissions (see addUsersToGroup in hub-common)
Parameters
| Parameter | Type | Default | Notes |
|---|---|---|---|
| teamId Required | string | ||
| usersToAdd Required | IUser[] | ||
| primaryRO Required | IHubRequestOptions |
Info and authentication for the requesting user |
|
| email Optional | IEmail | ||
| secondaryRO Optional | IHubRequestOptions |
Returns
The operations attempted, whether they were successful and any errors
| Property | Type | Notes |
|---|---|---|
| boolean | ||
| Optional | ISimpleResult | |
| Optional | ICreateOrgNotificationResult | |
| Optional | IInviteGroupUsersResult |
Function defined in teams/src/add-users-to-team.ts:22