gliderecord in ACL

arnabdash
Mega Contributor

Hi guys,

I want to use GlideRecord in ACLs. I know it is possible but is it recommended?

I have an 'ABC' table and the records go through an approval workflow. I need to create an ACL that will restrict approvers related to a particular record( to view the records which have them as approvers ). They can't view the records where they are not involved as approvers.

I am using a GlideRecord from ACL acript to read approvers from approval table and provide restrictions accordingly.

Please let me know how badly it will affect the performance.

Thanks and regards,

Arnab

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Hi Arnab,



While scripting in ACLs is not recommended, it is sometimes required. It will impact performance and you need to consider the ramifications. If you are just using it for a user to interactively look at a form, then it's negligible and nobody will notice. If you are using it in a transform map to import tens of thousands of records, the impact is magnified significantly.



http://wiki.servicenow.com/index.php?title=System_Performance_Best_Practices  


http://wiki.servicenow.com/index.php?title=Security_Best_Practices


View solution in original post

3 REPLIES 3

Chuck Tomasi
Tera Patron

Hi Arnab,



While scripting in ACLs is not recommended, it is sometimes required. It will impact performance and you need to consider the ramifications. If you are just using it for a user to interactively look at a form, then it's negligible and nobody will notice. If you are using it in a transform map to import tens of thousands of records, the impact is magnified significantly.



http://wiki.servicenow.com/index.php?title=System_Performance_Best_Practices  


http://wiki.servicenow.com/index.php?title=Security_Best_Practices


Got it. Thanks Chuck


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.



If you are viewing this from the community inbox you will not see the correct answer button.   If so, please review How to Mark Answers Correct From Inbox View.



Thank you