
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2017 08:25 AM
Hi,
I am wondering how to set conditional visibility around a menu item in Service Portal. Specifically, I need to make a link to the back-end (HREF/URL = /navpage.do) only visible to users who have the 'itil' role.
Does anyone know how to do that?
One other question I have is around the GlideSPScriptable.canSeePage() method - there doesn't seem to be any documentation around it - does anyone know if that method just checks the specified page's 'Roles' field to see if the user can see it or not? If that is the case, is there any similar functionality for HREF/URL menu items (since there is technically not a page to set the roles field on)?
Thanks,
Chris
Regards,
Chris Perry
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2017 08:58 AM
For your first question, have you tried setting the condition field on the Menu Item to "gs.hasRole('itil');"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2017 05:50 AM
Hi dvp,
Can we hide header menu items in portal in certain pages. If yes, please tell me how.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2017 06:58 PM
Hi GopeNath - did you figure out how to do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2017 08:48 PM
Hi Nasreen,
No, I did not found any solution for this.
Regards,
Gope
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2018 04:09 AM
Hi,
I'm trying to do the same thing, however I want to use gs.isMemberOf. Should this work as I'm not getting any positive results as yet. I have tried using the group name and the sys_id and neither work...
Any guidance would be appreciated.
Thanks in advance,
Dan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2018 07:20 AM
Have you tried gs.getUser().isMemberOf()? I think you were just missing the 'getUser()' portion of that method, then the sys_id or group name should work as valid arguments for 'isMemberOf()'.
Thanks,
Chris
Regards,
Chris Perry