How to restrict Virtual Agent to only a specific group/groups?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2024 09:34 PM
Can we make virtual agent icon visible based on user group? I am currently using Out-of-the-box virtual agent chat config. I am checking condition using gs.getUser().isMemberOf(), it is not working as needed. It is making visible to all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2024 10:03 PM
Hi Mitali,
Can you please refer to below short video. Let me know if you have further questions.
Please mark this comment as Correct Answer/Helpful if it helped you.
Cheers,
Hardit Singh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2024 11:17 PM
Your video is nice, though its not on Agent Chat configuration what is asked in this question. Your video is on the legacy method of using a Service Portal Virtual Agent widget.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2024 11:18 PM
Hi there,
Can you share your agent chat configuration server script? Or I assume you added the condition there?
Would using the roles field also be alternative?
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2024 12:10 AM