How to make a message appear on a catalogue item for a user that doesn't have access to it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2025 06:23 AM
What we have discovered is that if a user clicks on a knowledge article, if they click on a link to a catalogue item that they don't have permission to view, the following occurs:
From this, it's not very clear that the user doesn't have permission to view the catalogue item.
Does anyone know how I can include a message so that if a user tries to click on a link to a catalogue item they don't have access to, the message explains very clearly that they don't have the required access?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2025 06:47 AM
you cannot do much here.
the KB will contain link to catalog item and user doesn't satisfy the user criteria present in "Available for" related list then that message will appear.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2025 06:49 AM
Hi @Ankur Bawiskar The issue is that no message is appearing. It just shows a blank page. I want to be generate a message like the one below on my personal developer instance:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2025 06:54 AM
I am not sure if this will work but you can give a try
that message is shown because you opened that catalog item directly in the browser url and system checks user criteria.
what you can do is this
1) check which page you are taking the user to
2) see if you can add some widget there which will evaluate if the logged in user satisfies the user criteria for that item
3) if yes then show some message
OR Another way
1) create a UI script and inside it check which browser url is present
2) then use GlideAjax and check if user satisfies the user criteria or not
to check if user satisfies user criteria or not use this API
UserCriteriaLoader - API to Evaluate User Criteria
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2025 12:48 AM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader