Visiblity of the catalog items for all users

phr
Tera Contributor

Hi All,

 

I have a requirement where a particular catalog item needs to be visible to all users , We have also written this code in "available for" section .

phr_0-1714538711553.png

But still users with the snc_internal aren't able to see the catalog item in the portal. How to achieve this?

16 REPLIES 16

Deepak Shaerma
Kilo Sage

Hi @phr 
 A simple return statement like return true; 
If you’re relying on scripting within the “Available For” section,
Please Mark this Helpful and Accepted Solution. If this Helps you to understand. This will help both the community and me..
- Keep Learning ‌‌
Thanks & Regards 
Deepak Sharma 

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @phr 

 

in the above screenshot just add 'snc_internal' role in the role field, and in advance check for hasRoles().

I belive doing so your checking for snc_internal + any role if the user has...


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

Hi @Sohail Khilji 

 

We tried this as well, but it seems that Catalog item is still not visible .

 

 

 

On the role field, can you use 'public' role and see if it helps ?


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

Hi @Sohail Khilji 

 

We tried with this role as well still the results are same.