- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 05:47 AM
How would I limit a UI action to a certain group?
We have a group in ServiceNow and want UI action tabs should be visible for these groups members only and below condition already in placed. Now want to add one more condition for limit the access to one group only.
please help me on it. (both condition should be work)
current.subcategory=='mailbox_update'
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2022 07:47 AM
Hii Abhishek,
I have a suggestion, no need to add the condition just create a new role and assigned the to that groups you wants to give the permission and just specify the role in the UI Action you will get your requirement for sure, its easy and reliable.
Regards,
Imran Ahmad
Please mark helpful below
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 05:51 AM
Hello Abhishek use below condition current.subcategory=='mailbox_update'&& gs.getUser().isMemberOf('SN_IT Managers')
Please change group name as per your requirement
Mark Correct if it's helpful
Thanks,
Nagesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 08:08 AM
My group name is Messaging and below filter is not working
gs.getUser().isMemberOf('Messaging')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 08:17 AM
Can you check this
(current.subcategory == 'mailbox_update') && gs.getUser().isMemberOf('Messaging')
if it doesnt work, try this
(current.subcategory == 'mailbox_update') && gs.getUser().isMemberOf('Sys ID of the group')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 08:58 AM
Both filter not working