User Criteria not working based on User Location in Service Portal

arnabwa
Giga Guru

Hi Snow Enthusiasts,

 

I am trying to show/hide catalog categories based on User's Location in Service Portal. Sounds pretty simple.

What I did ? 

1. Catalog categories, items present.

2. Defined a User Criteria. Populated all the required locations in the 'Location' field in the User Criteria.

3. Added the User Criteria in the 'Available for' tab in the required Category (SAP User/Authorization).

4. Impersonated a user who does not belong to any of the locations mentioned in the User Criteria.

 

Observation : The user can still see the category in the portal which he should not if I am correct all the way.

Note: I activated the user criteria for service portal plugin. Also checked the required property in the 'Properties' module of Service Portal.

Please guide me to the correct path.

 

Many Thanks,

Arnab

 

find_real_file.png

 

find_real_file.png

 

find_real_file.png

1 ACCEPTED SOLUTION

I would compare the OOB widget with your custom one and see if you can figure out was is missing.

View solution in original post

8 REPLIES 8

Brian Lancaster
Tera Sage

Is that a custom category widget?  Mine do not show up like that.  Also, I should note hide the category does not hide the items under it.  They are still searchable.  So, you probably should add the user criteria to the items as well.

Hi Brian,

 

Thanks for your interest. 

Yes this is a custom widget on our portal where we show up the categories this way.

Applying user criteria for the catalog items would be my next step. But what about this category? Why does this not hide?

 

Thanks,

Arnab

You may be missing something in your custom widget.  I'm assuming you in dev can you try and add the OOB category widget to see if it hides on that?

Hi Brian,

 

Yes you are correct. The OOB category widget does hide the category.

I believe I need to take into account the user criteria definition in my custom widget. What do you suggest?

 

Thanks,

Arnab