Recent searches


No recent searches

Restrict Web Widget to Certain Users?



Posted Mar 20, 2025

Hello, I am trying to restrict the web widget to only appear for users with the user tag “administrator” and it does not appear to be working.

I am repurposing one suggested for organizations: https://support.zendesk.com/hc/en-us/articles/4408820799130/comments/4967400163482

 

for (var c in HelpCenter.user) {
 if (HelpCenter.user[c].tags.includes("administrator")){
     zE('messenger', 'show');}
 else
     {zE('messenger', 'hide');}}


0

0

0 comments

Please sign in to leave a comment.

Didn't find what you're looking for?

New post