Restrict access to GlideSystemUserSession scriptable API – How to validate behavior?

21p31a1220
Tera Contributor

I’m trying to restrict the usage of GlideSystemUserSession unsanitized messaging APIs.

I set the system property:  glide.sandbox.usersession.allow_unsanitized_messages = false

owever, when testing in a Business Rule, the following APIs still execute without any error or restriction:
gs.addErrorMessageNoSanitizationMessaging()
gs.addInfoMessageNoSanitization()

Restriction & validation

  • Is there a supported way to fully restrict or prevent the use of these APIs?
  • How can we properly test or verify that the property is working (logs, warnings, diagnostics)?
Thanks in advance!
0 REPLIES 0