- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 08:15 AM
I wants to create a Read, write and report ACL for assignment group type= IT Service, Exception: Admin
When agent selects any other Category/Subcategory, but the ticket is assigned to a group of type: IT Service, the ticket should ONLY be visible for members of groups that have type: IT Service.
I have created a read and write ACL: incident.*
script -
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2025 05:03 AM
Hi @Pratiksha KC ,
use deny Unless type acl or query BR for this
deny unless acl
replace itil with it services in the condition
script
answer = gs.hasRole('admin') || gs.getUser().isMemberOf(current.getValue('assignment_group'));
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2025 08:01 AM
Thanks for the replies. @Chaitanya ILCR , @Ankur Bawiskar , @Rakesh18081
It simply worked with applies to condition. Got the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 08:34 PM
if some ACL is allowing then your ACL even if blocks won't work
Ensure only 1 table level ACL is there and it's the one which you will work on
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2025 04:35 AM
Try below code in Read ACL if this doesn't work try Query business and check access Analyzer to understand which ACL is providing the access to the user.
gs.getUser().isMemberOf(current.assignment_group) && current.assignment_group.group_type == 'IT Service'
If my response helped, please mark it correct and close the thread so that it benefits future readers.
Rakesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2025 05:03 AM
Hi @Pratiksha KC ,
use deny Unless type acl or query BR for this
deny unless acl
replace itil with it services in the condition
script
answer = gs.hasRole('admin') || gs.getUser().isMemberOf(current.getValue('assignment_group'));
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2025 08:01 AM
Thanks for the replies. @Chaitanya ILCR , @Ankur Bawiskar , @Rakesh18081
It simply worked with applies to condition. Got the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2025 08:22 AM
Hi @Pratiksha KC ,
I have shared almost the same thing(deny unless type and condition)
if you feel that my post could be helpful for you in solving your issue
could you please mark it as helpful and accept it as a solution(you can accept multiple solutions 🙂)
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya