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

@BharathChintala 

 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  If you are doing this in RITM table no need of property

 

can be done with conditions

BharathChintala_0-1676887396601.png

 

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

@BharathChintala Thanks but I don't need this way I need it to be dynamic. I want property ehich contains comma separated sys_id of catalog. So incase if I need in future I can just add the catalogs  in property rather than configuring the acl

@Akki1 try below script

BharathChintala_0-1676892380023.png

 

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

@BharathChintala Thanks but will current.item work in acl?