- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
I want to block one group from see the create problem button from incidents or to stop the button from working. i create this script but is working all user
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
you can't use script for this at that place
Handle this using Table.None CREATE ACL and use script there
If user doesn't pass CREATE ACL then new button will be hidden automatically
answer = !gs.getUser().isMemberOf('SD_SVCDESK_ALL');
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Looks like Copilot was hallucinating. The only way to restrict this is via a create ACL or defining the roles which are allowed to see the action.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
I'm not aware of canCreate accepting a script, only a boolean value. Do you have documentation for this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
No, but it was something suggest by copilot. how will you have resolved this issue. to block one group from creating.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Looks like Copilot was hallucinating. The only way to restrict this is via a create ACL or defining the roles which are allowed to see the action.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
you can't use script for this at that place
Handle this using Table.None CREATE ACL and use script there
If user doesn't pass CREATE ACL then new button will be hidden automatically
answer = !gs.getUser().isMemberOf('SD_SVCDESK_ALL');
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
