- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 04:53 AM
Hi all
On the icon menu list on our service portal, we are able to specify conditions for each menu item, to dictate who we show the item to, by using isMemberOf(group name) to only show the item to those in that group.
But how can we hide an item based on users being in that specific group? I want to specify which groups to hide it for instead of show it for, because the rest of the organisation have no groups or roles, so I can't use 'isMemberOf(group name)' to specify who we want to show it to.
I've tried -
isNotMemberOf(group name)
!=isMemberOf(group name)
It doesn't seem that the form configuration on the backend has 'available for' or 'not available for' either.
Is there a way to do this?
Many thanks.
Sarah
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 05:41 AM
Hi,
In the Menu Item record "condition" field you can use: !gs.getUser().isMemberOf('sys_id of the group')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 05:41 AM
Hi,
In the Menu Item record "condition" field you can use: !gs.getUser().isMemberOf('sys_id of the group')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 06:55 AM
Well that was simple! Thank you. Do you know if it's possible to do the same thing on an icon link widget? There doesn't seem to be a 'conditions' field?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 07:38 AM
Hi @sarahleighton,
There is a role field available, you can try adding the roles to whom you want to give access.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 11:50 PM
Hi - I saw that but the people I want to restrict it from are the same as in the above case, and don't have any roles. I don't want to give any roles as it impacts other functionality. I was hoping there was a way to add the same condition as above. I'll keep trying. Thanks