- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
17 hours ago
Only Assignment group members can edit respective incident. for other users incident should be read only except worknotes , worknotes should be editable to all itil users, please give me "Deny Unless" ACL because if im trying to create normal ACl , because of OOB ACL's my ACL is not working.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
13 hours ago - last edited 13 hours ago
Hi @abc1233 ,
You need to create two Deny Unless ACL's to achieve this: -
1) Create a Deny Unless ACL on write operation
Make sure you are not creating it on table but on field level - incident.*
If you create incident.none it is going to restrict write access to all records which do not satisfy condition, it's not going to check for your field level ACL
2) Create a Deny Unless ACL on write operation to allow adding work notes
If this solves your query mark this as correct/helpful.
Thanks
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
16 hours ago - last edited 16 hours ago
Hi @abc1233
To achieve this requirement, you can create a Deny Unless Write ACL on the Incident table and another on the work_notes field. Because Deny Unless ACLs are evaluated with higher precedence than standard ACLs, they can be used to enforce your custom access criteria and effectively override the default OOB write access behavior.
- Table level deny acl
- Type: record
- Operation: write
- Name: Incident [incident]
- Decision Type: Deny unless
- Condition: Assignment group is dynamic One of my groups // update condition as per your requirements.
if (current.assignment_group.nil()) {
answer = true;
} else {
answer = gs.getUser().isMemberOf(current.assignment_group);
}
- Field level Deny Acl
Type: record
Operation: write
Name: Incident [incident] -> Select work_notes from the field dropdown.
Decision Type: Deny unless
Roles: itil
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
16 hours ago - last edited 16 hours ago
i tried this but still worknotes are not editable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
16 hours ago
Did you clear your cache or log out/in again after creating the ACLs?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
16 hours ago
@Mark Manders yes i did