The CreatorCon Call for Content is officially open! Get started here.

How to restrict the record producers to be viewed from Catalogs and Direct Links

sm001086602
Tera Contributor

We have HR service and record producer is attached to it.

We are restricting the record producer from a group of people By using the Available For Tab by adding the user criteria.

When the restricted users are trying to search the name of the Record producer in the search present in the Portal they are not able to view it.

 

But when the restricted users try By clicking on the Category Attached to it they are able to access the restricted record producer

And if the users have the direct link still they are able to view it

In both the cases the users are able to submit the request also.

 

Need some inputs how it can be restricted via these routes.

3 REPLIES 3

M Iftikhar
Giga Sage

@sm001086602 ,

Service Catalog enables an administrator to grant or deny access to a service catalog item or category by company, department, group, user, or location.  Configure form to add the appropriate Available or Not available lists. However some users might still be able to view RP if rule in Overriding Entitlement Scripts by Role is set.
https://www.servicenow.com/docs/bundle/xanadu-servicenow-platform/page/product/service-catalog-manag... 

MIftikhar_0-1758015586892.png

Have you added role at categories level?

Also here:

MIftikhar_2-1758016092586.png

 

 

Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.

 

Ankur Bawiskar
Tera Patron
Tera Patron

@sm001086602 

it's strange that User Criteria is not evaluated with direct link or from within category.

As a workaround you can use onLoad catalog client script and use GlideAjax and check if logged in user is supposed to see the item.

if not then show alert to them and redirect to portal home

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@sm001086602 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader