Stop SOPA

kBLOG

All things about Life, Oracle Middleware and Technology

Using Groovy to Retrieve Current logged in user name

| 0 comments

This is a cross post with mdlwr blog

One tip I found Useful, and I didn’t find enough resources talking about it, is how to populate a value of Entity Attribute or Binding Value with the current logged in user using Groovy

 

Simply use this:
adf.context.securityContext.getUserPrincipal().getName()
Piece of cake :)