OIM: Additional Recipients in End Date Notification
Hi Experts,
Please help.
OOTB End-Date notification goes to the Manager of the user. This is coded in oracle.iam.identity.scheduledtasks.EndDateSchedulerTask
But my requirement is to send it to another custom email address, fixed for all users.
Please guide as how can I achieve this with OOTB Template.
I was planning to write a custom schedule task where I was planning to copy the whole code as it is from oracle.iam.identity.scheduledtasks.EndDateSchedulerTask and just replace
String[] receiverIds = { managerId };
with
String[] receiverIds = { managerId, "UserID with New Email" };
_.LOGGER.logp(Level.SEVERE, getClass().getName(), "execute", e.getMessage(), e); } continue; if (user.getAttribute(UserManagerConstants.AttributeName.STATUS.getId()) != null) { status = user.getAttribute(UserManagerConstants.AttributeName.STATUS.getId()).toString(); if (user.getAttribute(UserManagerConstants.AttributeName.USER_LOGIN.getId()) != null) { userId = user.getAttribute(UserManagerConstants.AttributeName.USER_LOGIN.getId()).toString(); } if (user.getAttribute(UserManagerConstants.AttributeName.MANAGER_KEY.getId()) != null) { managerKey = user.getAttribute(UserManagerConstants.AttributeName.MANAGER_KEY.getId()).toString(); try { manager = usrMgr.getDetails(managerKey, managerRetAttrs, false); } catch (UserManagerException e) { _.LOGGER.logp(Level.SEVERE, getClass().getName(), "execute", e.getMessage(), e); } if ((manager != null) && (manager.getAttribute(UserManagerConstants.AttributeName.USER_LOGIN.getId()) != null)) { managerId = manager.getAttribute(UserManagerConstants.AttributeName.USER_LOGIN.getId()).toString();