Skip to main content

Notify Students Employer Flag

Notifies student applicants that a job/employer they applied to has been removed for a Terms of Service violation.

Attribute
Channelsemail
User typesstudents
RegionsNA, EU
Platformsweb
Product areaMiscellaneous
Notification preferencenotify_students_employer_flag
Notification config/v1/notify_students_employer_flag.yml

Audience

Students who applied to a job at the flagged employer. For a suspended flag, all applicants across the employer's jobs; for a warning flag, applicants of the flag's selected job.

Trigger

In the handshake monolith, an admin sets an employer flag to suspended/warning with the "send notifications" checkbox checked (Next::Admin::EmployerFlagsController#update). This enqueues EmployerFlags::NotifyStudentsWorker, which computes the applicant recipient list and requests the send via Notifications::NotificationSendingBatchWorker.

How to test

Command line

In a handshake rails console:

flag = EmployerFlag.where(status: 'suspended').last
EmployerFlags::NotifyStudentsWorker.new.perform(flag.id)

Additional info

The email is rendered by NotifyStudentsEmployerFlagMailer#student_email in the handshake monolith (packs/employers/packs/trust), tagged employer_flag_notify_students in Mailgun.

This notification previously existed via the legacy ActivityHandler path and was removed in Oct 2023 (handshake PR #60639); it was restored via NSS in 2026 (NTF-4409).

Aliases

  • Notify Students Employer Flag