How to show catalog items on portal based on User Criteria applied.

Community Alums
Not applicable

Hi All,

 

I want to show catalog items on portal based on user criteria applied on the catalog item.

If the catalog item has any user criteria, then it should be visible only to those users who has access.

How to get the catalog items based on user criteria, Which method or API in servicenow?

 

Thanks in advance

Samidha

 

10 REPLIES 10

Balaram7
Kilo Sage

Hi samidha,

 

You need to define user criteria .

To define user criteria for catalog items, there is a related list named as "available for".

Open that and create a new user criteria based on your requirement.

Hope this info will helpful for you to accomplish your task.

 

Thank you,

Balaram.

Community Alums
Not applicable

Thanks @Balaram7 for your reply.

I know how to apply user criteria on catalog item.

In portal widget i need to show the catalog item list based on user criteria.

For ex. There is one catalog item which has role base user criteria with ITIL role. If the logged in user does not have ITIL role he/she should not be able to see that catalog item in portal widget page list.

How to fetch or show the catalog items in widget server side based on user criteria?

Any specific method or API we have to validate the user criteria.

Hello,

 

Not sure if I am understanding something wrong here but applying the  available for/ Not available for in the related list is the same as wat you are trying to achieve.

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

In the Catalog item itself we have available for/ Not available for in the related list. You can use that

 

Saurav11_0-1667313141615.png

 

Saurav11_1-1667313180612.png

 

Please mark my answer as correct based on Impact.