Is there a way to disable a specific catalog from native view

Ray20
Tera Contributor

The catalog still needs to be accessible in the portal

8 REPLIES 8

Ray20
Tera Contributor

Could you provide more detail on how you would do this?

Hello @Ray20 

 

try creating user criteria with below 👇 script - 

 

// Allow only when NOT in the platform for ITIL users
if (gs.hasRole('itil') && gs.isInteractive()) {
answer = false; // Hides from platform
} else {
answer = true; // Shows in portal or for non-ITIL users
}

 

It has is interactive - so I am assuming this won't work for platform but will give access in portal. 

 

Try it and let me know. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

Brian Lancaster
Tera Sage

So are you asking if you can hide a catalog item from the standard UI but still have it available in the portal? If that is the case I do not think it is possible. You can hide from the portal but I do note believe there is options for the standard UI.

Shivalika
Mega Sage

Or @Ray20 

 

You can write a Query BR and hide it from the catalog item list for them. But this has open ends if it accessible from anywhere apart from this list - maybe need to check that. 

 

If both of these don't work, it means it's not possible to do. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY