- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2022 03:39 PM
Hi
I have created a new application menu/module for a group in our organization. When these users are selecting this module I want to hide the new button in the list view.
How can I change this only for this module?
Thanks
Mike
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2022 11:18 PM
2 approaches
1) List control
you can use script in the Omit new condition field when you configure the list control on that table
answer = !gs.getUser().isMemberOf('Group ABC'); // give group name here
2) Table level CREATE ACL
Update table level CREATE ACL and use this script in advanced sectionn
answer = !gs.getUser().isMemberOf('Group ABC'); // give group name here
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2022 11:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2022 11:18 PM
2 approaches
1) List control
you can use script in the Omit new condition field when you configure the list control on that table
answer = !gs.getUser().isMemberOf('Group ABC'); // give group name here
2) Table level CREATE ACL
Update table level CREATE ACL and use this script in advanced sectionn
answer = !gs.getUser().isMemberOf('Group ABC'); // give group name here
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2022 12:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2022 12:17 PM
Hi Ankur
I removed the ! and it is now working as expected.
Thank you
Mike