- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2019 05:00 AM
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
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2019 06:47 AM
I would compare the OOB widget with your custom one and see if you can figure out was is missing.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2019 05:13 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2019 05:20 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2019 05:27 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2019 06:38 AM
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