- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2022 04:09 AM
Hi,
I got a requirement from an end user. He is asking for the visibility of all available catalog items in the system. We thought of 2 approaches.
1) Adding user to all user criteria (which impact not available for on catalog items)
2) Create new criteria and add it to all catalog items (time consuming and has to follow for all future catalog items creation)
Is there any better approach to achieve this, through any catalog related roles? Please help.
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2022 05:13 AM
Hi,
since most of your catalog items have user criteria linked to them
you might have to update all those
OR
better create a new user criteria for this user only and add that user criteria to all your catalog item via script so that it becomes quick
var arr = ['itemSysId1','itemSysId2']; // give your catalog item sysId here
var userCriteriaSysId = ''; // give here the user criteria sysId you will be creating
for(var i in arr){
var rec = new GlideRecord('sc_cat_item_user_criteria_mtom');
rec.sc_cat_item = arr[i];
rec.user_criteria = userCriteriaSysId;
rec.insert();
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2022 04:14 AM
Hi Mahesh Kumar,
Here is the steps which you should follow :
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2022 04:14 AM
Hi,
but why does end user require visibility of catalog items?
will that user be submitting any item?
Inform that user to discuss this with the business stakeholders since you must be having user criterias associated to those catalog items and simply giving access to those items for end user may not be required.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2022 04:24 AM
Hi
Hi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2022 04:30 AM
Ideally all catalog items should be available for all end users unless restricted. Check which ones are not visible and remove the user criteria for that