- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2022 01:37 AM
Hi All,
How do we hide the Virtual Agent portal widget for certain users based on user's country?
Please provide your inputs.
Thank You,
Solved! Go to Solution.
- Labels:
-
Virtual Agent

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2022 01:51 AM
HI Harsha,
If you are using VA portal widget and com.glide.service-portal.user-criteria plugin enabled then you can add user criteria to the widgets or widget instance or even the page.
just add the can view and cannot view to the related list and you should be good to add user criteria there.
more about adding user criteria - https://docs.servicenow.com/en-US/bundle/sandiego-servicenow-platform/page/build/service-portal/task/widget-user-criteria.html
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2022 01:51 AM
HI Harsha,
If you are using VA portal widget and com.glide.service-portal.user-criteria plugin enabled then you can add user criteria to the widgets or widget instance or even the page.
just add the can view and cannot view to the related list and you should be good to add user criteria there.
more about adding user criteria - https://docs.servicenow.com/en-US/bundle/sandiego-servicenow-platform/page/build/service-portal/task/widget-user-criteria.html
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2022 03:46 PM
Hi Murali,
If I don't use legacy service portal widget for a chat, but Agent Chat Configuration, is there a way to define the "country-based" condition?
I know in "agent chat" configuration we are limited to roles and portal.
I'm thinking about having a custom server-side script in Header widget determining user's country and conditional-based CSS style to hide/show the Virtual Agent icon.
Do you think this can work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2022 06:29 PM
Hi Peter,
Did you figure out a way to hide the VA chat bubble based on logged in user's country info when using Agent Chat Configuration?
We have a similar requirement to hide VA in the Service Portal for users from specific countries.
Thanks,
Sushant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2025 12:39 AM
HI @Harsha M V,
Have you managed to find a solution to your challenge?
My thought was to define a role and use the role for Agent Chat Configuration, then use a scheduled script to assign/remove the role to users based on a list of countries.