ACL for for restricting user to create records

Deepansh Jain
Kilo Contributor

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?

6 REPLIES 6

Ashutosh Munot1
Kilo Patron
Kilo Patron

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

Hi Ashutosh,

 

Will that be a scripted one ??

Do you have ascript for that?

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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