How to give access to enduser to view all available catalog items?

Mahesh Kumar2
Tera Expert

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.

 

1 ACCEPTED SOLUTION

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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

18 REPLIES 18

Community Alums
Not applicable

Hi Mahesh Kumar,

Here is the steps which you should follow :

https://community.servicenow.com/community?id=community_question&sys_id=363207addb98dbc01dcaf3231f96...

Mark my answer correct & Helpful, if Applicable.

Thanks,
Sandeep

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Mahesh Kumar2
Tera Expert

Hi @Sandeep Dutta , i know the process of user criteria creation and adding them to available for under catalog items. I have to do it for all catalog items. So looking for a better approach.

 

Hi @Ankur Bawiskar  , i Hope you understood the query. I had a discussion with requestor, he is a service desk manager. Hence he wants to see all catalog items which are in system under his profile even though he might not use all items. Thought of creating new criteria with user in it and add it to available for all the catalog items, since it is a hectic process even for future items. I am looking for a better approach. Is there any role which gives only visibility of catalog items ? or any other alternative.

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