Write ACL evaluating as false

logan2
Mega Contributor

There is a field on a form that is only supposed to allow edit IF the choice box value is a certain value. I wrote in the conditions to allow this to happen, as it sounds fairly simple. The ACL evaluated as false.

So I removed the conditions and just added a script for "answer = true;" and it is still evaluating to false. If I set the ACL to inactive, I can edit the field. But if I set it to active with the hardcoded true it does not allow edit. There are no roles associated with this ACL.

Any ideas would be greatly appreciated. This is the change_task table, which inherits the task table if that is of any help.

Thanks

1 ACCEPTED SOLUTION

Deepak Ingale1
Mega Sage

I don't see a reason that it is getting evaluated to false since all your three conditions ( Condition filter, script and role) are evaluated to true, so ACL should be true


Providing screenshot of ACL and Debug Security operations will help to comment further


View solution in original post

11 REPLIES 11

bernyalvarado
Mega Sage

Hi Logan, would you mind trying with your ACL active and with the script field empty?



If it still fails, here goes some follow up questions:



a) do you have any roles defined on your ACL related list?


b) can you modify other fields of that table?



Thanks,


Berny


No roles. No with the impersonated user I cannot modify any other fields. With Admin override turned off, with the ACL on I can not edit the field and with it off I can edit the field.


Hi Logan, that will explain it then!



Most probably you need an ACL at the table level to grant you write access over change_task. Please check if you have a write ACL named change_task which grants you access to the change_task table? If you don't, please create one and try again



Thanks,


Berny


Once you have access to the table, then you might also want to check the desired access for the rest of the fields within the table defining or modifying the ACLs named change_task.* or change_task.field_name



Thanks,


Berny


The SN Nerd
Giga Sage
Giga Sage

Remember that the ACL is only evaluated when the record is loaded and when the record is saved.


I don't think it will dynamically make the field read only until you save,



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022