ACL for for restricting user to create records
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2020 05:18 AM
Hello,
I need to create an ACL so that user is not able to create any new records except for rest/Soap users , but all the users should be able to edit the records as per there roles .
Will it be possible?
- Labels:
-
User Experience and Design

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2020 05:21 AM
Hi,
Yes you need one create ACL which will restrict creation of the record and then write acl to allow them write access as per roles.
Thanks,
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2020 05:33 AM
Hi Ashutosh,
Will that be a scripted one ??
Do you have ascript for that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2020 05:44 AM
Hi Deepansh,
So are you saying only rest/soap users should be allowed to insert record into that table?
Please update the existing CREATE ACL on the table level
1) If you want even admins should not create records into this then
a) Admin overrides checkbox = false
I assume you must be having specific SOAP and REST User being used for integration; so please use those in script
answer = check();
function check(){
var userSysId = gs.getUserID();
if(userSysId == 'SOAP User SysId' || userSysId == 'REST User SysId'){
return true;
}
else{
return false;
}
}
Also there must be already OOB WRITE ACL on that table which came when table got created;
that should allow other users to edit
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2020 05:47 AM
Hello,
I need this for all the tables since we are migrating to new instance , We dont want users to create new records in any table but allow them to edit there pending records .
& this should not affect Rest/Soap users
Regards,
Deepansh