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

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

@Mahesh Kumar 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
Ankur

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

Hi @Ankur Bawiskar 

We thought of adding user to all user criteria to get access to all catalog items. Where as in exceptional cases like some criteria added under not available for section to some catalog items, we will create new criteria and add it under available for against all those exceptional scenarios.

Does above approach works? what's your opinion on this?

 

Does catalog_admin role give access to see all catalog items? if so, is it ok to give the role to Service Desk manager? (Simple way to achieve this, i believe)

Hi,

catalog_admin should be fine I believe; but check with your business team

Regards
Ankur

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

Hi @Ankur Bawiskar Thanks for your responses. Just a suggestion, I hope catalog_admin rights give full (edit) permissions on items. Correct me if i am wrong. If so, is it the best practice to follow if a manager asking for full catalog items access.