Skip to main content
Open

Hide/show content based on role

Related products:CC CommunityCC Customization
  • May 21, 2021
  • 5 replies
  • 58 views


Adding a new idea based on what I had previously as a question here: 

 

What I’m looking for is additional options per widget that can help align content show with the roles users have in the community. While we have capabilities with the list of categories or featured topics and these work decently, it doesn’t work the same for all widgets.

I have a mixed community of customers and non-customers and would like to be able to merchandise more effectively. For example:
 

  • Show X content only to customers (these are customRole = customer)
  • Show Y content only to non-customers (those without particular roles)
  • Show Z content to folks with both roles (these are “registered users”)
  • Show only certain groups to specific roles
  • Show only certain events to specific roles
  • Show only certain quick links to specific roles
  • Show only certain events to specific roles

5 replies

  • Helper ⭐️⭐️⭐️
  • June 3, 2021
Updated idea status NewOpen

  • Helper ⭐️⭐️⭐️
  • June 3, 2021

Hello @Scott Baldwin, Thanks a lot for this idea. 

I totally get your point about groups, event and quick links.

I had a follow up question about topics. You mention that you like to Show X content only to customers (these are customRole = customer). Right now if you feature a topic on your homepage then only users who have the rights to see that topic will see it on the homepage. So you like to highlight topics to some users with a custom role on the homepage even if other users can see that topic? Did I get that right?


  • June 3, 2021

@Marion Frecaut an example here might be showing a list of quicklinks, an event, a group, etc. to only customers (those with the customRole = customer). As far as I’m aware only the list of categories and featured topics hides/shows content based on the user’s role, but feel to correct me if I’m wrong.


security_lion
  • Helper ⭐️⭐️
  • March 12, 2024

We are looking at how we can accomplish this in our private community. Has anyone figured this out through script or SSO? It appears to not be possible through Gainsight CC.


Samuel Brown
  • Contributor ⭐️⭐️
  • August 28, 2025

We’ve got a particular issue with preventing access to events based on a custom role. Currently a user can see and access any events / links to registration pages regardless of whether they’re signed in or not. We have special “plans” that customers can be on which grants them exclusive access to events but we also want to give non-plan customers access to see (not access) what they’re missing out on.

It would be great if we could control:

  1. Who is able to see the event page (force users to login to view the catalogue)
  2. Who is able to see both the registration links and any additional links on the event

This could be done on a event type basis, or even by event.

We have managed to achieve this ourselves by writing very complex Javascript to do the permission setting for us and removing access links for those not entitled to them, but of course, anyone technical enough would still be able to find the links if they really went hunting for them.