Identity Management (MOSC)

MOSC Banner

OIM: Additional Recipients in End Date Notification

edited Jul 16, 2017 6:22AM in Identity Management (MOSC) 1 commentAnswered ✓

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();                               

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center