Trust OPC UA Connection from perspective

Hi,

Instead of going to the security page of OPC UA in the Web Gateway to trust an incoming a new OPC UA Connection, is it possible to do it through scripting in perspective or on the gateway ?

Regards
Arnaud