set acl for multiple catalog items

Akki1
Tera Contributor

Hi,

I have a acl which I need for multiple catalog items but I don't want to use the hardcoded sys_id in condition.I have created a property with comma seperated sys_id of catalog items. How do I use in my script to apply the acl for only these catalog items?

12 REPLIES 12

SatyakiBose
Mega Sage

Hello @Akki1 

Why why why ?

WHY ARE YOU USING ACL FOR CATALOG ITEMS ???????

You can simply add user criteria with roles, groups, location or scripts.

This is should be much easier to achieve and also maintain.

You would be complicating the architecture of the platform by adding ACL for specific catalog items.

You can read more about it here - Apply user criteria to items and categories

 

Maintaining User Criteria is much more conveneient and simpler compared to maintaining system properties, & ACLs

@SatyakiBose I'm creating acl on sc_req_item and I want only for specific catalog items whose sys_id i mention in the property.

@Akki1 

Can you please describe your business use case in details.

BharathChintala
Mega Sage

@Akki1 

here are 2 different things

1. If you want to do restrict configuring catalog items  we already have OOB ACL's for that with roles catalog_admin, catalog_builder_editor ,catalog_managercatalog_editer.

BharathChintala_3-1676883326289.png

 

2. If you trying to restrict who can submit request using those items 

create a User criteria and add same to list of items you want apply like below

BharathChintala_1-1676883222040.pngBharathChintala_2-1676883241476.png

 

for catalog items in related list there will Available for and not available for using that  you can restrict who can see that particular cat item.

BharathChintala_0-1676883102196.png

 

 

If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala