Need to notify the managers and some users when any admin role is added or removed or updated.

1__TapasviSinK
Tera Contributor

The notification should see like this:
Hello,
The Admin Role has been added for user John Doe. **Details:** -
**User Affected**: John Doe -
**Action Performed**: added -
**Modified By**: Jane Smith -
**Timestamp**: 2024-11-22 14:30:00
Thank you,
ServiceNow Team

6 REPLIES 6

JenniferRah
Mega Sage

Are you asking how to trigger that notification or how to build the notification itself? I'm not sure what you are wanting help with.

 

If you want to know how to trigger it, I would create a business rules on the sys_user_has_role table that runs when a role is added/updated/removed where the name contains admin. Then I would have that BR fire an event that triggers the notification.

Actually I have created the Business Rule and event is triggered but I am unable to send the notification.
it's only the notification Part which is making problem but request you if you can provide the whole solution.

1__TapasviSinK_0-1732548381540.png

This is the Business Rule that i have created but it is not working in notification but event is triggered. 

If the event is getting triggered, then the BR is dong its job. Is the notification set to run when the event is fired? If so, you may need to add some screen shots of the notification so we can see what might be wrong.

 

Remember that since you put "current" as the record and the BR runs on sys_user_has_role, then the record it will see is the sys_user_has_role record, not the user record itself.