- 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 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
05-15-2019 03:07 AM
Hi Brian,
Thanks a lot for directing to the right direction. The user criteria was not incorporated in the custom widgets. What I used was to mark the items and categories into a particular or multiple locations as the case may be and then made query in the server script of the widget and then accordingly I could use the query values in the HTML script to populate the categories and items.
Now it works like a charm.
Thanks again,
Arnab

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2019 05:14 AM
HI,
I am not sure if this will work for Categories. But i think you should try for individual items to see if this is working fine or not.
Thanks,
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2019 05:22 AM
Hi Ashutosh,
Thanks for your interest.
User criteria does work for Categories as well. Follow User Criteria for categories
Thanks,
Arnab