- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2023 12:06 AM
For one user with ITIL role
I want to disable writing to the incident table with ACL.
Please tell me how to implement it.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2023 01:38 AM
You can create Write ACL where in Condition you can put below code:
if(gs.getUserID() != '<sys_id of user>') // sys_id of user for whom you want to restrict
answer = true;
else
answer = false;
Better store the sys_id of user in Property and call it using gs.getProperty('<property_name>');
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2023 12:44 AM
@tokuyamaharuyuk There are no exclusive conditions that can be added to ACLs. You need to update all the ACLs' which are granting write access to the ITIL role and add in the script if the logged-in user is not the user to which you would like to restrict access.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2023 01:38 AM
You can create Write ACL where in Condition you can put below code:
if(gs.getUserID() != '<sys_id of user>') // sys_id of user for whom you want to restrict
answer = true;
else
answer = false;
Better store the sys_id of user in Property and call it using gs.getProperty('<property_name>');
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023