Make user VIP when part of a group ?

Floridalife
Giga Expert

We want to manage VIP user using groups, how can i enable the VIP checkbox auto when the user is part of a group ?

1 ACCEPTED SOLUTION

The problem with that is you are needing the business rule to run off the sys_user_grmember table and setting a value in the sys_user table.


Plus, we've determined that it runs when you manually add/remove someone from the group, so the business rule seems to work.



Here is what i would do.


Create a new community post with the question of why is my business rule not running on the LDAP import explaining that it works when you manually add someone to the group, but when the transform map does it, the business rule does not run even when 'run business rules' is checked.


This might find someone who has an answer to respond since this issue is not obvious from the current post question...


View solution in original post

38 REPLIES 38

I have no idea if this would matter (without testing), but can you look at your transform map for this import and see if the 'Run business rules' field is checked?


My assumption is that this would only affect the BR's on the target, but I am not sure.



Also, just add this line to the script to see if it is even firing.


gs.log("arrived at business rule");


Add this right above the var usergr = new ...



This will at least verify in the logs if the BR is even getting fired.


Yes Run business rule is checked under transform



Good idea, i added the gs.log to the script, reran the LDAP sync, where do i find this log entry now? i see nothing under System Log > ALL


Look under the system logs application for the script log statements module. It should be there if it actually triggered the business rule. I believe the business rule should fire from you manually adding the user to the group or from the import. If a permissions issue, it should still log, it will just ignore the VIP update.


Looks like logging isnt enabled for the app log, it shows no record even when selecting ALL in the filter, where do i turn it on ?


Can you post your script?


That is very unusual that you are not seeing anything, although I suppose it is possible.


YourInstanceName.service-now.com/syslog_list.do?sysparm_query=sys_created_onONToday%40javascript%3Ags.daysAgoStart(0)%40javascript%3Ags.daysAgoEnd(0)%5Esource%3D***%20Script



If you replace the 'yourinstancename' in the above URL with the instance you are working on, this should be the correct location of any script logs such as gs.log("hello there");