VA Topic should be visible based on logged in user role
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2023 03:39 AM
Hello
I want to hide the VA topic if user don't have an 'snc_internal' role.
I have tried below approach
(function execute() {
var udc = new GlideRecord('sys_user_role');
udc.addQuery('sys_id','7fcaa702933002009c8579b4f47ffbde');
udc.query();
if(udc.next()){
return true;
}
else {
return false;
}
})()
But this is not working as expected.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2023 04:01 AM
Hi @divya216 ,
To hide topics based on role Go to Topic > Properties tab > Advanced properties > Who can access this topic > System Roles.
You can add snc_internal to System Roles.
Regards,
Badal Khojare
Community Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2023 04:59 AM - edited 10-19-2023 05:00 AM
Hello @Badal Khojare
We have tried but its not working.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2023 05:04 AM
Hi,
You tried flushing the cache after adding role and publishing the topic? Cache sometimes play a significant part. Also topic you want to have in VA Chat and not in designer right?
Regards,
Badal Khojare
Community Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2023 05:08 AM
Hello @Badal Khojare ,
Yes in the VA chat when we click on show me everything some topics should only be visible to the 'snc_internal' role.