Advanced User criteria script not working for knowledge bases
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
I have a requirement to only allow people to view into a knowledge base that have a specific role, in a specific group, in a certain company and have a specific service level. The role, group, and company are fields on the user criteria form that I have added. However the service level field is a custom field on the user record. So I have selected Advanced and added this portion as a script. Match All has been selected.
However, people that are not the service level are still showing up as allowed to view the knowledge base. It blocks people that are not in the role, group and company but if they are of a different service level they can still read. I have tried different types of scripts including one below and another written as a function instead. I have tried using both the display name (blocks everyone even in IT) or the sysID (allow everyone including those not in IT). They all work in background script when testing and show the correct true/false value, but it seems like it doesn't care if it true or false. I have verified the users testing with that they do not have access through an ACL or other user criteria.
I make sure to log off and log back in after updating the user criteria record. I also give it some time before testing but not working. Anyone seen this before?
