My Oracle Support Banner

Groovy Script - Adf.context.getSecurityContext() Does Not Get Any Result (Doc ID 2519872.1)

Last updated on DECEMBER 22, 2020

Applies to:

Oracle Fusion Sales Cloud Service - Version and later
Information in this document applies to any platform.


The goal of this document is how to print in runtime messages the security Context using the below Groovy code.

def secCtx = adf.context.getSecurityContext()
def user = secCtx.getUserName()
println("TestRole" + secCtx)
  return true;

return false;


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.