Help Limiting Content Based on User Segment



  • Trapta
    Community Moderator

    Hi Morgan King,

    You can use the same code replacing HelpCenter.user.tags with HelpCenter.user.organizations and check for the organization instead of tags.

    Currently, there is no way to do this using Zendesk HelpCenter Components so one has to use the JS code in order to achieve something like this.

    Let me know if this solves your issue.


  • Morgan King

    Thank you, Trapta!! That did it. 

  • Michael Potts

    Perhaps someone could help on this?  For HelpCenter.user.organizations[0].name, it will only break the js if there is no organization that a user belongs to.  I've tried all sorts of looking for length like the above example and it breaks when a user does not have an organization.  Any help would be appreciated.

    Thanks so much.

    - Michael

  • Brett Bowser
    Zendesk Community Team

    Hey Michael,

    It looks like you haven't received a response on this post. I'm rather limited on what I can assist with from my end, but I did want to double-check with you to see if you're still running into the same issue.

    If so, any chance you could provide the code you're using so far? This may help other community members get a better understanding so they can assist further.



Please sign in to leave a comment.

Powered by Zendesk