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

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

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

Ashutosh Munot1
Kilo Patron
Kilo Patron

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

Hi Ashutosh,

 

Thanks for your interest. 

User criteria does work for Categories as well. Follow User Criteria for categories

 

 

Thanks,

Arnab