Attempts to email members of the requesting user's organization.

  • emailOrgUsers(users: IUser[], email: IEmail, authentication: IAuthenticationManager, isOrgAdmin: boolean) : Promise<ICreateOrgNotificationResult | null>


Parameter Type Default Notes
users Required IUser[]

Users to email (must be in the same org as the requesting user)

email Required IEmail
authentication Required IAuthenticationManager
isOrgAdmin Required boolean

// Whether the requesting user in an org admin


A promise that resolves to the result of the transaction (null if no users are passed in)

Promise<ICreateOrgNotificationResult | null>

Function defined in common/src/groups/emailOrgUsers.ts:20