Send notification to manager if user role was removed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 09:42 AM
Hi Team,
I have a requirement, If user ITIL role is removed send notification to user manager
Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 09:53 AM
You can create a business rule on delete on the table sys_user_has_role to trigger a notification.
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 10:02 AM
All the user roles has been traced using table "sys_user_has_role" table, if we are providing/removing roles to the user, it will create/delete entries in that table
Steps:
1) Create a new Before - Delete Business rule as follows
2) Create a event in the advance script trigger an event using gs.eventQueue()
3) Map an email notification with the event
This will work 100%
If my answer solved your issue, please mark my answer as ✅Correct & 👍Helpful based on the Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2023 07:49 AM
Hi Thanks for the replay,
The BR is working but notification is not triggering,