current.canWrite() function checks table level acls only or both table and field level acls?

puneethm
Tera Contributor

current.canWrite() function checks table level acls only or both table and field level acls?

1 ACCEPTED SOLUTION

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

please read this article, it will clarify well your doubt:

Scripts - understanding when ACLs are evaluated

If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

Thank you

Cheers
Alberto

View solution in original post

4 REPLIES 4

Alikutty A
Tera Sage

Hello Puneeth,

current.canWrite() checks at table level

GlideRecord - canWrite()

Determines if the access control rules (which includes the user's role) permit updates to records in this table.

Parameters
NameTypeDescription
None  
Returns
TypeDescription
BooleanTrue if the user can write to the table, false otherwise.

Hi Alikutty,

Thanks for the info.

Regards,

Puneeth.M

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

please read this article, it will clarify well your doubt:

Scripts - understanding when ACLs are evaluated

If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

Thank you

Cheers
Alberto

Hi Alberto,

Thanks for the info.

Regards,

Puneeth.M