After Insert Business Rule not firing

Community Alums
Not applicable

I am trying to get an After Insert business rule to fire on the "sys_user_has_role" table.

I have bigger plans in the future, but for the time being, I just want to see a log statement when a user gets a role. The problem is the BR isn't firing when the user gets the role from being added to a group. However, when I add a role to the user directly, it works fine. See below for script:

(function executeRule(current, previous /*null when async*/) {

gs.warn("BR Triggered");

})(current, previous);

 

As I said before, if i add the role to the user directly, it works fine. If, however, I add the user to a group, and they get the role from being added to the group, it doesn't fire. 

Help?
@ctomasi any ideas?

6 REPLIES 6

Community Alums
Not applicable

ctomasi any thoughts?

tagging doesnt work in new community


Please mark this response as correct or helpful if it assisted you with your question.