The code sample below demonstrates how to obtain user and group
information for an authenticated user from within WebSphere
Application Server. It uses the WAS security API as documented
in the
Programming API section of the WAS 8.5.5 Knowledge Center
(see packages starting with com.ibm.websphere.security.auth
and com.ibm.websphere.security.cred
.)
For more details on the WAS authentication model, please see Advanced WAS Authentication on IBM developerWorks. Yes, it's old; but most of it still applies.