addUsersToTeam

Function

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
success boolean
autoAdd Optional ISimpleResult
email Optional ICreateOrgNotificationResult
invite Optional IInviteGroupUsersResult

Function defined in packages/teams/src/add-users-to-team.ts:22