addUsersToEvent

Function

Attempts to add, invite, or email users about attending an event depending on the requesting user's permissions (see addUsersToGroup in hub-common)

Parameters

Parameter Type Default Notes
eventId 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 events/src/add-users-to-event.ts:21