Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

A user should receive assignment group notifications only for selected groups, not for all groups.

Satyam123
Tera Contributor

Requirement 

  • A user can be a member of multiple assignment groups.

  • But the user wants to receive email notifications only for one specific group.

  • The user does not want to receive notifications for other groups, even though they are a member of those groups.


📌 Example

  • John is a member of:

    • Software group

    • Hardware group

    • T3 group

But:

  • He wants to receive notifications only when a ticket is assigned to the T3 group.

  • He does NOT want notifications when a ticket is assigned to:

    • Software group

    • Hardware group

Even though he is part of those groups.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@Satyam123 

not possible directly to handle this

You can have custom before insert/update BR on sys_email table and see the recipients and try to manipulate the recipients there and remove that user

But I won't recommend this as you are creating BR on OOTB system table

Please inform customer that this is OOTB behavior and you can't control/restrict it for 1 group only

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron

@Satyam123 

not possible directly to handle this

You can have custom before insert/update BR on sys_email table and see the recipients and try to manipulate the recipients there and remove that user

But I won't recommend this as you are creating BR on OOTB system table

Please inform customer that this is OOTB behavior and you can't control/restrict it for 1 group only

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Yes you are right, I have handled it using event registry and business rule, tested it and working as expected.

  • Gets all users in the assigned group

  • If the assignment group is NOT the T3 group:

    • Excludes users who are also members of T3

  • Fires a custom event (incident.assignment.filtered)

  • Passes the filtered user list to the event

👉 In short:
It sends notifications to assignment group members, but prevents T3 members from receiving notifications unless the assignment is actually to T3.

Dr Atul G- LNG
Tera Patron

Hi @Satyam123 If a user is part of a group, it means they have a role within that group. Hiding or not sending the notification to a specific group is not a good approach. There is no valid reason not to send the email to the intended group. This cannot be handled out of the box (OOTB) and would require custom logic, which could introduce technical debt.

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Yes you are right, I have handled it using event registry and business rule, tested it and working as expected.