Need to notify the managers and some users when any admin role is added or removed or updated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2024 02:06 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2024 07:15 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2024 07:22 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2024 07:28 AM
This is the Business Rule that i have created but it is not working in notification but event is triggered.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2024 10:40 AM
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.