- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2017 02:09 AM
Hi All,
I have a requirement to hide some menu items in Service Portal to some portal users who does not have access.
I was thinking of controlling by role/group.
E.g. User A login to Portal and is not authorized to see Dashboard menu item, thus he can only see Homepage
User B login to Portal and is authorized to see Dashboard menu item, thus he can see both Dashboard and Homepage
Does anyone has a sample script to do this?
Thank you in advance for your help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2017 02:22 AM
You should tag a condition to your menu item for dashboard. Open the menu item and add this condition.
gs.hasRole('itil')
This will hide the menu items for users who don't have itil role or from end users. Let me know if this worked for you
Thank You
Please Hit Like, Helpful or Correct depending on the impact of response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2019 02:25 AM
Did you check my comments in your actual post?
Change the Type to Page and specify your page name directly instead of URL.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2019 02:37 AM
I have already tried that but unfortunately it didn't worked