Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Provide edit access for particular field using ACLs

sachin43
Kilo Explorer

Working on ACLs to provide write access for a field on 'Location' table for role 'X'.By default all fields on 'location' table for role 'X' are read only. I want to make one field on location table for role 'X' to be editable. Please help me on this.

I tried below ACLs.

->Read acl table.none added role X

->write acl table.fieldname added role X 

1 REPLY 1

Tim Provin
Mega Guru

You are missing the table level write access for the role.  From the Docs site https://docs.servicenow.com/bundle/madrid-platform-administration/page/administer/contextual-securit...

"The user must first pass the table ACL rule. Since the base system includes STAR (*) table ACL rules that match every table, the user must always pass at least one table ACL rule."

So to give them write access to a field, you will want a write ACL at the table level for the specific role.  Then to restrict them from writing to the other fields, you will want a table.* write ACL that they don't pass (this should give access to the specific role(s) you want to be able to right to the rest of the fields.