If you are on traditional WAS - WIM/VMM API is still available but specific attributes might depend on your configuration. You don't need any jars – as you can use this API directly from server side script like below:
-------------------
if (tw.local.email && tw.local.email.length > 0)
{
var service = new com.ibm.websphere.wim.client.LocalServiceProvider();
var root = service.createRootDataObject();
var sc = root.createDataObject("controls", "http://www.ibm.com/websphere/wim", "SearchControl" );
sc.set("expression", "@xsi:type='PersonAccount' and mail='"+tw.local.email+"'" );
sc.set( "countLimit", new java.lang.Integer(1) );
sc.getList("properties").add("uid");
sc.getList("properties").add("mail");
sc.getList("properties").add("displayName");
var result = service.search(root);
var entities = result.getList("entities");
if (entities.size()==1) {
var entity = entities.get(0);
if (entity)
tw.local.login= entity.get("uid");
var displayNameList = entity.get("displayName");
tw.local.fullName= displayNameList.isEmpty() ? null : displayNameList.get(0);
}
}
-------------------
Please note that IBM is discouraging us from using Java from JavaScript (status: deprecated) - but on tWAS it is the simplest way to achieve what you want.
------------------------------
Sebastian Tylko
------------------------------