Hi All,
I have a problem generating user names via trusted reconciliation in OIM 11gR2 PS2. From the UI it works fine to generate user names but from trusted recon via a flat file I get a problem as I get null from reqData.get(emptype) as the reqData map does not contain the employee type / role of the user (e.g. Full-Time), see code below.
public String getUserName(Map<String, Object> reqData) throws UserNameGenerationException {
logger.entering(CustomUserNameGeneration.class.getName(), "getUserName");
String userId = "";
String reqFirstName = reqData.get(firstname) == null ? null : reqData.get(firstname).toString();
String reqLastName = reqData.get(lastname) == null ? null : reqData.get(lastname).toString();
String reqEmpType = reqData.get(emptype) == null ? null : reqData.get(emptype).toString();
I have printed reqData and it clearly does not have the emp type / role:
reqData = {usr_locale=null, Middle Name=null, Email=null, Last Name=Rooth, First Name=Marcus}
However, when the reconciliation event is re-tried a while later I get all data that has been reconciled including the role:
reqData = {Display Name=Marcus Rooth, Role=Full-Time, Employee Number=107863, act_key=21, Last Name=Rooth, Xellerate Type=End-User, First Name=Marcus}
Has any of you seen this before? Any suggestions how to resolve it?
Thanks,
Albin