Set security context in the script
Summary:
We have a scenario where the record creation requires additional privileges and part of the script should be executed as privileged function.
mainFunction_unprivileged body
//do some processing, privileged not required for this par
...
def hasRole = adf.context.getSecurityContext().isUserInRole('CUSTOM_JOB_ROLE')
if(!hasRole){
additionalFunction_unprivileged()
}
Is it possible to call additionalFunction_unprivileged function as privileged even though it's not defined as privileged in Application composer?
setSecurityContext
public void setSecurityContext(SecurityContext ctx)
Internal:Applications should not use th
0