Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Restrict Catalog and Catalog Items. ACL or Entitlement script questions

poyntzj
Kilo Sage

Hi all
I have added three fields to KB, Service Catalog and Catalog Items
u_global_view True / False
u_show_to - string 1000
u_hide_from - string 1000
If global view is true, use and make the "u_hide_from" visible
If global view is not trie, use and make the "u_show_to" visible

the strings contain part of a DN, sperated by semi colon
On KB, I have added a script to the ACL and simply it takes the contents of the "u_show_to" or "u_hide_from", makes an array and checks the users dn entry. If there is a match, then either show or hide depending on what we want and stop.
All works great

I thought adding this to the Service Catalog and a Category Item so we could easily hide them would be a case of adding the same script to the relevant ACL. Firstly, seems I am wrong and I cannot find the ACL that controls whether a record is visible or not. Anyone got any ideas on what ACL's these are, or what one I need to create. I did create one earliy
table - sc_cat_item
condition - none
script - gs.log('Jules ACL test');
roles - either blank or public. no difference either way

I went and looked and was able to access the category items
however and annoyingly, nothing in the logs 😞

Further on, I started to look at entitlement scripts. I can modify the routine I have to work here (after i found out that most records do not work in the entitlement script) so all is not lost, however, is there somewhere where I can place this entitlement script so that any new Catalog Item automatically has this script added ?

Thanks in advance

1 ACCEPTED SOLUTION

Hi, attached are 3 documents



service catalog items - restricted view   is an overview of how it works and what to add in the show to / hide from boxes


servicecataloginclude.txt   - is the script include


service catalog items - set entitlement is the client script that is used when you choose restricted view and automatically creates the entitlement script



The following are the fields I have added to the catlog items



find_real_file.png



Hope it helps as I know this is a little rough and ready


View solution in original post

6 REPLIES 6

Hi, attached are 3 documents



service catalog items - restricted view   is an overview of how it works and what to add in the show to / hide from boxes


servicecataloginclude.txt   - is the script include


service catalog items - set entitlement is the client script that is used when you choose restricted view and automatically creates the entitlement script



The following are the fields I have added to the catlog items



find_real_file.png



Hope it helps as I know this is a little rough and ready


minicj
Giga Contributor


Thank you so much for providing this information - works a treat!



Katie