Business Rule Not Working for Specified Role

Sofija
Giga Expert

Hello! I feel a little stuck with a business rule which does not seem to be running correctly, and would appreciate your help.

My objective was to create a BS on Incident form that would default Assignment Group based on the role Opened by user had. I did create a role called itil_servicedesk and assigned to certain groups. I also created the following BS rule:

Capture.PNG

Capture.PNG

However, once I go on to test the functionality works only for me as an admin (though I am dont have itil_servicedesk) role, but does not work for the groups that have the itil_servicedesk role. Any ideas why? I would like it to work only for itil_servicedesk role and it should not work for admins.

1 ACCEPTED SOLUTION

Ok..I've constructed an example in the below demo link where it is working. Please check for reference.


Business rule name : check role


https://demo007.service-now.com/login.do


Username : admin


Password : admin


Steps for testing : Impersonate as a user "Abel tuter"


Basically it will set the assignment group to "Database" if the opened by has the group "Cab approval".


For demo purpose I've made "Abel tuter" the member of the group.


View solution in original post

34 REPLIES 34

Why the behavior is different for CS and BR ? in BR admin Inherits all roles but in CS if I write the same logic it restricts admin to do the same job??


arpitt
Tera Expert

Hi Kamile,



If you want to resist this functionality from admin. Kindly user hasRoleExactly('Rolename') in the condition script.




Regards,


Arpit


Admin still seems to override.. However, my bigger issue is that current BS does not work for those users who have the role but somehow works for admins.. I would appreciate any ideas/suggestions!


shashankjoshi
Kilo Expert

Hello Kamile,



Try below Combination



find_real_file.png




Regards,


Shashank Joshi


This doesnt work, but a good suggestion..