- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2022 07:54 PM
Hi All,
I need a help reagrding ACL script on knowledge article form to restrict the users editing/deleting the article except the author and owner group. Except these users the other users should not be able to edit or delete the article. Please suggest the script.
Regards,
Tejaswini RG
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2022 12:08 AM
Hi Ashwini,
You can use the below script
if (gs.getUser() = current.author || gs.getUser.isMemberOf(current.ownership_group) = tue){
answer = true;
}
else
{
answer = false;
}
Correct the syntax errors and field names if required
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2022 09:39 PM
Hi
Have you tried setting an ACL for write access? In the conditions/script you can check the current user group.
Otherwise, option that would definitely work is to use a before Business Rule on update. It would check the user and the Facility Department. You can abort the action so the record does not save current.setAbortAction(true). You'd probably want to show an info message as well. You may want to do a display BR as well to show an Info message to the user that they will not be able to edit.
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2022 10:45 PM
Can you please provide the script for that, i am bit blank to try the script to get the author and owner group same time. It will be really helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2022 11:36 PM
Hey sandeep, can you please suggest the Before BR script, i will try in the instance.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2022 10:00 PM
Hey,
Found one article that lays out the explaination, what approaches you can make as well as suggestions:
https://community.servicenow.com/community?id=community_question&sys_id=29c387a5dbd8dbc01dcaf3231f961978
Aman Kumar