If a custom page (whose visibility is restricted to certain roles) has been created, where could we show this on our community, so it’s only visible for the certain roles.
For some extra context, we have created a custom page for a VIP type role for our customers, they gain access to this page through SSO and ideally when they log in, we want them to see a tab/button/link/anything to this custom page - but it must only be visible to them and not other roles.
Initially we thought the Mega Menu would be ideal for this but it seems that if you add something to the Mega Menu it’s viewable for everyone.
Here’s what we’re aiming for:
Regular user/Not logged in: Users visit your community but can't see the special VIP tab.
VIP user when logged in: VIP users log in and then see a new tab in the Mega Menu (or anywhere else) called "VIP space" that others can't see.
It doesn't have to be the Mega Menu, it can be somewhere else, just as long as it’s only viewable by the VIP role.
I’d really appreciate any solutions or workarounds here if there are any 😅
Best answer by DannyPancratz
This is a gap that ultimately needs to be solved for custom pages and it doesn’t quite have any elegant solutions.
At one point, they mentioned adding role-based permissions to widgets (ex. quick links) so if/when they deliver that, it could be easier feature it in a widget on your community home or other customizable pages.
Until then, my best advice to you is to do something I’ve done a fair bit of. I call it it “Phantom Categories”
Phantom Categories
Use case: Role-based links in the Mega Menu
Create a Community or Knowledge Base category with the name you want to appear in the Mega Menu drop-down
(I don’t think the customizable links in mega menu will work, it’s just a simple way to insert a link, I don’t think it will respect role-based permissions.)
Give the category the exact same permissions as the custom page. This will have it appear / not appear in the Mega Menu based on the user’s role.
Create a link redirect in Control > Customize > Third-Party Scripts
Redirect the URL for the category to the URL for the Custom Page
This makes it so that when a user clicks the URL via the Mega Menu, they go to the Custom Page
Alternative
Use case: Role-based tile/button/link on the home page (not Mega Menu)
You could create a tile or button in an HTML widget that only shows for certain roles. It’s a similar solution: you create the widget and then use a Third-Party Script to set it to show/hide based on if they are the correct role.
This is a gap that ultimately needs to be solved for custom pages and it doesn’t quite have any elegant solutions.
At one point, they mentioned adding role-based permissions to widgets (ex. quick links) so if/when they deliver that, it could be easier feature it in a widget on your community home or other customizable pages.
Until then, my best advice to you is to do something I’ve done a fair bit of. I call it it “Phantom Categories”
Phantom Categories
Use case: Role-based links in the Mega Menu
Create a Community or Knowledge Base category with the name you want to appear in the Mega Menu drop-down
(I don’t think the customizable links in mega menu will work, it’s just a simple way to insert a link, I don’t think it will respect role-based permissions.)
Give the category the exact same permissions as the custom page. This will have it appear / not appear in the Mega Menu based on the user’s role.
Create a link redirect in Control > Customize > Third-Party Scripts
Redirect the URL for the category to the URL for the Custom Page
This makes it so that when a user clicks the URL via the Mega Menu, they go to the Custom Page
Alternative
Use case: Role-based tile/button/link on the home page (not Mega Menu)
You could create a tile or button in an HTML widget that only shows for certain roles. It’s a similar solution: you create the widget and then use a Third-Party Script to set it to show/hide based on if they are the correct role.
If you ever had a profile with us, there's no need to create another one. Don't worry if your email address has since changed, or you can't remember your login, just let us know at community@gainsight.com and we'll help you get started from where you left.
Else, please continue with the registration below.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select.