
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2022 10:44 PM
I have this user criteria with the script below:
The script is correct but when I impersonate a user that matches the user criteria and open the article below which he should not see the article, he can still the article on self service knowledge
Here's the user criteria diagnostics:
The User doesn't have any role except for Business stakeholder role. The knowledge base doesn't have any user criteria under Can Read and Can Contribute.
Solved! Go to Solution.
- Labels:
-
Knowledge Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2022 10:57 PM
Hi Rae,
This below article might help you. Mark my answer as correct if that helps
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0623654
Regards
Regards,
Musab

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2022 11:23 PM
Hey,
The code doesn't seem right:
you should be using
gs.getUserID() instead of user_Id in 2nd line
Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions 🙂
Aman Kumar