OIM 11g: Adding a new tag to notification template

Hi:
OIM 11g comes with some pre-defined notification templates, like 'Generated Password Template', 'Reset Password Template'.
You can see those thru the admin console, System Management, Notifications.
I would like to add a new Tag to one of those notifications, like 'Generated Password'. It currently includes the User Login and Password. I would like to include the User Name to the notification Body.
Can I do this?? How can I accomplish this??
I try to edit the template, and in the documentation, they mention the Event Name and Available variables. I don't see this 'Available Variables' to select from when I edit the notification template.
I am using OIM 11g 11.1.1.5.
Thank you for your help..

Modify the OOTB notification Template for including a few extra attributes
-Identify the template and the event type which you want to modify. For example let’s assume we will modify the OOTB ‘Request Creation’, the corresponding xml for this event type is in the following MDS path:
\metadata\iam-features-request\notification\RequestCreationEvent.xml
Note: The path as specified in the OIM11G documentation might be incorrect
-Modify this xml to point to a custom resolver class as follows:
<?xml version='1.0' encoding='UTF-8'?>
<Events xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../notification/metadata/NotificationEvent.xsd">
<EventType name="RequestCreation">
<Resolver class="com.iam.notification.CustomNotificationResolver">
<Param Name="Request" DataType="X2-Entity" EntityName="Request"/>
</Resolver>
</EventType>
</Events>-Import the xml back to the MDS database
-Create a jar (custom resolver class) and a plugin.xml, bundle them up as a zip and register the plug-in using ‘ant/API’s’ as you want
-Modify the OOTB notification templates as required
-Send email to verify if your changes are being reflected
You can create your own customized templates based on the OOTB one but the ‘Resolver Class’ would not be able to pick up this new template because the only purpose of the resolver class is to override a couple of methods (‘getAvailableData’ & ‘getReplacedData’), so that you can add some extra attributes to be read in your template, but the ‘Template Name’ remains the same as it is hard-coded.
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import oracle.iam.notification.impl.NotificationEventResolver;
import oracle.iam.notification.vo.NotificationAttribute;
public class CustomNotificationResolver implements NotificationEventResolver {
     public List<NotificationAttribute> getAvailableData(String eventType, Map<String, Object> params) throws Exception {
          return null;
     public HashMap<String, Object> getReplacedData(String eventType, Map<String, Object> params) throws Exception {
          HashMap<String, Object> resolvedData = new HashMap<String, Object>();
         resolvedData.put("requestId", params.get("RequestId"));
         resolvedData.put("requestType", params.get("RequestType"));
         resolvedData.put("userId", params.get("UserId"));
         resolvedData.put("userName", params.get("Name"));
         resolvedData.put("baseUrl", params.get("BaseURL"));
         resolvedData.put("myCustomField1", "myCustomField1");
         resolvedData.put("myCustomField2", "myCustomField2");
         resolvedData.put("myCustomField3", "myCustomField3");
          return resolvedData;
}Credits to Sunny for coming up with the solution. Since he seems busy, I took the liberty of posting his solution here.
HTH,
BB

Similar Messages

  • Adding CC list for OOB notification template

    We have the OOB generate password notification template which gets triggered to end user when user is created. Can we add some one in the CC list to this mail so that the mail is sent to CC list also..??
    One approach would be creating a post create event handler and in that code we can send the email to cc list. Is there any approach apart from this..?

    We have the OOB generate password notification template which gets triggered to end user when user is created. Can we add some one in the CC list to this mail so that the mail is sent to CC list also..??
    One approach would be creating a post create event handler and in that code we can send the email to cc list. Is there any approach apart from this..?

  • OIM 910: Adding a new menu to the admin console

    Hi,
    I followed the instructions to create a new menugroup/item in the admin console: http://download.oracle.com/docs/cd/E10391_01/doc.910/e10362/custmenu.htm#sthref118, but I see no changes in the console, once redeployed.
    Is there something more in addition to the things described from the manual?
    Env: OIM 910 on Solaris 10, JBOSS
    Thanks in advance.
    Regards.

    Never mind, there was a deployment problem with JBOSS.
    Now everything works, fine, even though the step I followed are slightly different from what the guide describes.
    Thanks a lot.

  • Adding a new substatus in Appraisal template

    Hi All
    I am trying to add a new substatus in phap_catalog_pa. The status has been defined in oohap_basic , but while checking the same in phap_catalog_pa , it throws the error , " Status cannot be deleted ".  I am able to view the substatus but unable to select the check box.
    Please let me know how can i add a new status in the existing template.
    Thanks

    your appraisal template is in released status or not released status.
    if it is in released status this error will come, you have to do un-release and then add new sub-status.
    find the screen shots:

  • Help required related with OIM 11g Email Notification

    Experts,
    I have a requirement where I have to pass the User's Password through autogenerated email.
    But I have a scenario where I dont have to provision any target resource for users..so i dont have access to Notification Tab for such kind of users.
    I thought of writing a custom Event Handler to send email using custom code.
    But IN OIM 11g , I found that Inside, Advanced->Notification Template-> Create User Self Service Notification … is getting triggered with UserID: $userLoginId<br> and its woking fine.
    But once I added Password: $password<br> In the same template, its not providing me the password.
    So I think the Parameters associated with this Event "Self register user" does not have $password.
    Is there any way to check which all parameters can be accessed in these Events?
    Also, what is the best way to send password to users who does not any target resources associated?
    Thanks,
    Regards,
    J

    Hi I am trying to get the Create User Self Service Notification template working but for some reason I get an error in the log saying unexpected error occured while sending notification. and I am not recieving any mails..I have done the following steps
    created an IT resource with the name same as the value of Email Server property
    have made the value of RequestNotification property 1
    is there anything else I need to do..
    Can you also give some details as to how you have created the IT Resource...is the authentication true/false if true does any username and password do..
    Thank you

  • Disable Notification template in oim 11g

    In OIM 11g there are a set of notifications under system management(advanced tab in admin console). How do you disable an email notification without deleting the email template?
    Thanks.

    http://docs.oracle.com/cd/E21764_01/doc.1111/e14308/system_props.htm#BACGIDCH
    Property: Recon.SEND_NOTIFICATION
    Re: [OIM 11g] OOTB Email Notification
    -Bikash

  • Can  SPML-DSML client (10g) talk to SPML-XSD in OIM 11g?

    Hello.
    I have a SPML client that works with OIM 10g. If I upgrade to OIM 11g, will my client continue to work, or will I need to re-code it?
    I understand OIM 11g supports the newer XSD profile of SPML, but I would hope it is backward compatible with clients written to work with the DSML profile (10g)...But when I got an error when I tried to hit the WS in SPML-XSD with my client, I decided to install the SPML-DSML app (using the SPML-DSML.ear found in my OIM 11g installation, same dir as DSML-XSD.ear).
    The web app shows as Active, however I cannot see any Web Services (tried URL http://<oim-server>:14000/spmlws) ... To confirm, when I open Enterprise Manage 11g, and I do see the app (spml-dsml) under Application Deployments --> Internal Deployments, but when I right click on it to get to Web Services, I get the message "No Web Services are found in the application"...
    I then tried un-installing SPML-XSD, but that did not help...
    Thoughts anybody?
    Edited by: user8663548 on Jul 12, 2012 5:46 PM

    Update:
    I tried again hitting the Web Service in SPML-XSD and saw this error in OIM server log (which I missed the first time, too busy looking at my client app log):
    <Jul 12, 2012 5:36:52 PM EDT> <Error> <oracle.wsm.resources.security> <WSM-00069> <The security header is missing. Ensure that there is a valid security policy attached at the client side, and the policy is enabled.>
    <Jul 12, 2012 5:36:52 PM EDT> <Error> <oracle.wsm.resources.security> <WSM-00006> <Error in receiving the request: oracle.wsm.security.SecurityException: WSM-00069 : The security header is missing. Ensure that there is a valid security policy attached at the client side, and the policy is enabled..>
    <Jul 12, 2012 5:36:52 PM EDT> <Error> <oracle.wsm.resources.enforcement> <WSM-07607> <Failure in execution of assertion {http://schemas.oracle.com/ws/2006/01/securitypolicy}wss-username-token executor class oracle.wsm.security.policy.scenario.executor.WssUsernameTokenScenarioExecutor.>
    <Jul 12, 2012 5:36:52 PM EDT> <Error> <oracle.wsm.resources.enforcement> <WSM-07602> <Failure in WS-Policy Execution due to exception.>
    <Jul 12, 2012 5:36:52 PM EDT> <Error> <oracle.wsm.resources.enforcement> <WSM-07501> <Failure in Oracle WSM Agent processRequest, category=security, function=agent.function.service, application=spml-xsd, composite=null, modelObj=SPMLService, policy=oracle/wss_username_token_service_policy, policyVersion=null, assertionName={http://schemas.oracle.com/ws/2006/01/securitypolicy}wss-username-token.>
    <Jul 12, 2012 5:36:52 PM EDT> <Error> <oracle.webservices.service> <OWS-04086> <oracle.fabric.common.PolicyEnforcementException: InvalidSecurity : error in processing the WS-Security security header
    Getting closer!
    Edited by: user8663548 on Jul 12, 2012 5:45 PM

  • OIM 11g - Mail Notification for multiple resources

    User will be provisioned to 5 target system through access policies.So instead of sending 5 different mail notifications to the manager on the Create User task about the account creation, is it possible to send one consolidated mail about the provisioned resources in OIM 11g.

    Hi,
    How abt for the following requirement for sending single mail for multiple resources provisioned.
    We have 3 Access Policies which is defined as follows.
    1) Policy 1 -> R1,R2,R3 Resources
    2) Policy 2 -> R3,R5 Resources
    3) Policy 3 -> R1,R4 Resources
    In such a case we will not be able to put dependencies on Resources and adding a task for sending email.

  • Available attributes in OIM 11g notifications

    We have been using the new notifications templates in oim11g following the descriptions as given in the blog post below.
    http://fusionsecurity.blogspot.com/2011/07/oim-11g-notifications.html
    This is how an event is specified:
    <?xml version='1.0' encoding='UTF-8'?>
    <Events xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../notification/metadata/NotificationEvent.xsd">
    <EventType name="ApprovalTaksOpenEvent">
    <StaticData>
    <Attribute Name="usrLogin" DataType="X2-Entity" EntityName="User"/>
    </StaticData>
    <Resolver class="oracle.iam.request.notification.CustomResolver">
    <Param Name="usrLogin" DataType="X2-Entity" EntityName="Request"/>
    </Resolver>
    </EventType>
    </Events>
    Basically we found that wat is in the StaticData part is show in the notification template interface as Available data (in the above example all user attributes are shown). Now my question is it somehow possible to have any attribute show in the Available Data section of an Notification Template. It would be create if "business" users don't have to "guess" which placeholders are available for a certain notification template. I already tried the variant below but it did not have the desired result.
    <StaticData>
    <Attribute Name="somePlaceHolder" DataType="String"/>
    </StaticData>
    Greetings
    Bas
    Edit-> As per documentation it should be possible to do this with the non static data, I will investigate it furter
    Edited by: bsteen on Apr 6, 2012 7:11 AM

    You can open the jar file with a decompiler and just view the NotificationResolver class and see what attributes are being sent to it.
    -Kevin

  • OIM 11g ootb notification

    Hi All,
    I'm new to OIM 11g.I'm trying to create user using web interface and user is successfully created but no OOTB email notification are triggering..
    I have configured Mail Server It Resource.
    IT Resource Name           Email Server      
    IT Resource Type           Mail Server
    Authentication                No
    I'm using Toolheap software to test notifications.
    Regards.
    Krish.

    find the steps here
    Enabling The Logging in OIM 11g
    Any Custom Schedule Task and Event Handlers to debug in the OIM 11g Server to enable the logging. The following way to enable the logging in Oracle Identity Manager 11g.
    Pre-Requisite
    Java Code Configuration
    Add the following line into your java code.
    Import Statement
    import com.thortech.util.logging.Logger;
    private Logger logger=Logger.getLogger("Logger-Name");
    Configuration Of Logging
    Go to the $DOMAIN_HOME/config/fmwconfig/servers/oim_server1 directory and edit the logging.xml file.
    Configure The Log Handler
    <log_handler name='logger Handel Name' level='FINEST' class='oracle.core.ojdl.logging.ODLHandlerFactory'>
    <property name='logreader:' value='off'/>
    <property name='path' value='Log File Location'/>
    <property name='format' value='ODL-Text'/>
    <property name='useThreadName' value='true'/>
    <property name='locale' value='en'/>
    <property name='maxFileSize' value='5242880'/>
    <property name='maxLogSize' value='52428800'/>
    <property name='encoding' value='UTF-8'/>
    Include The Logger Handler Logger Configuration
    <logger name="Logger-Name" level="Log Level" useParentHandlers="false">
    <handler name="logger-Handel-Name"/>
    <handler name="console-handler"/>
    </logger>
    Oracle Identity Manager 11G Log Levels
    Log Level ODL Message Type:Level
    SEVERE.intValue()+100 INCIDENT_ERROR:1
    SEVERE ERROR:1
    WARNING WARNING:1
    INFO NOTIFICATION:1
    CONFIG NOTIFICATION:16
    FINE TRACE:1
    FINER TRACE:16
    FINEST TRACE:32
    The FINEST log level will give the more debug info. If you want to debug your schedule task or event handlers, please use FINEST Log level.
    --nayan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to deploy a new ADF task flow in OIM 11g R2

    Hi,
    I have created a new ADF task flow.
    Now I need to deploy the same in OIM 11g R2, so that when I click on a link it will call my new ADF task flow.
    Please help me in identifying the steps required to deploy the adf task flow.
    Thanks

    Hi Durga,
    Thanks for sharing the post. I think I am facing the same issue which you were facing.
    I have already done these steps but still not able to get my custom page on click of a link which I created in OIM self service page :
    1. I have created the adflibHomepagePortletsUI.jar as an adf library using Jdeveloper and copied it to oracle.iam.ui.custom-dev-starter-pack.war --> WEB-INF/lib folder after unpacking it.
    2. have updated the custom-catalog.xml file inside oracle/adf/rc/metadata folder with the below lines :
    <folder name="Sample Folder" id="sampleFolder">
    <contents>
    <resource id="helloWorld" name="Hello World"
    description="Hello World Taskflow Reference"
    repository="application.classpath"
    path="adflibHomepagePortletsUI.jar/ADF_TaskFlow/WEB-INF+oracle+iam+ui+sample+homepage+tfs+hello-world-tf.xml#hello-world-tf">
    <attributes>
    <attribute value="coreDefault" attributeId="attr.background" isKey="false"/>
    </attributes>
    </resource>
    </contents>
    </folder>
    3. repacked the war file and copied it in OIM_HOME/server/apps directory
    4. Restarted the OIM server.
    5. entered the following lines in jazn-data.xml present in user_projects\domains\idmdomain\servers\oim_server1\tmp\_WL_user\oracle.iam.console.identity.self-service.ear_V2.0\6bddg\META-INF\jazn-data.xml
    <permission>
    <class>oracle.adf.controller.security.TaskFlowPermission</class>
    <name>/WEB-INF/oracle/iam/ui/sample/homepage/tfs/hello-world-tf.xml#hello-world-tf</name>
    <actions>view</actions>
    </permission>
    5. Login to self service console.
    6. Click on the custom link who's actionListener is pointing to bean which is launching the taskflow created in the above steps.
    7. On Click of the link a new tab gets open with blank page.
    Please help me in knowing the step which I am missing in order to solve this issue.
    Many thanks once again.

  • Sending email notifications in oim 11g approval flow dynamically

    Hi,
    I have 4 level approval workflow in oim 11g and developed custom composite to get all the approver ids and and assigning these ids into 4 variables.
    And used these variables in my custom 4 level sequential workflow. This workflow is working fine. Now I need to update this composite to send email notifications to the approver. So updated code to retrieve email ids and to store them in 4 more vairables. I cannot send all emails at a time thru the code. I need to send email only to the corresponding approver only when the flow reaches to that particular level.
    Subject and body will be same but the email address will vary.
    Can you please let me know the step by step process to implement notifications to these many levels.
    If you think, this is not correct approach (storing all email ids in variables and then sending notifications), please let me know correct approach.
    Thanks,
    Mary

    The way to do it would be to put your human task inside a while loop. This while loop would set a variable to the approver's userid and would continue till all the four approve it. In your human task you need just one approver and that would be the variable which the while loop sets.
    If you do it this way, then you can use the OOTB notification tab in the .task and select the 'Assignee' as the email notification receiver and you won't have to worry about getting the email ids as well.
    As for the current approach which you have, that is of using the sequential approvers in the human task, I haven't tried it, but just try setting the notification tab in the .task to 'Assignee' and event 'On Assignment'. That should do it as well.
    -Bikash

  • Email notifications for multi level approvals in OIM 11g

    Hi,
    I am using OIM 11g.
    And in my current environment, we have 4 levels of approvals and need to send a different type of email notification in every level to the corresponding approver.
    Can you please let me know how to implement this in SOA composite. first two approvals are sequential and the remaining two approvals are parellel.
    Thanks,
    Swathi

    You have to use combination of switch and if task. In if block you have provide the condition. This conditon will be predicted over some variable. This variable you will set in payload where approver will be decide.
    You can have multiple mail notification or you can set the body content dynamically(set the variable data in payload where the approver is being manipulated) use this variable in body content.
    Kuldeep

  • Sending email to user using the notification template in OIM 11g

    Hi all
    I have created a Notification Template using web console in OIM 11g.
    Iam able to access the contents from notification template in my java code.
    But iam not able to find the correct api's to send email to user using the notification template
    (like tcEmailNotificationUtil using this class we can connect to email template created in design console and creating IT resourse we can send email to user using the method sendEmail).
    Waiting for your help and pointers
    Thanks and Regards
    Bipin patil

    Thanks GP!.
    But i have the same doubt here.
    "The Notification Event is defined through a XML file that must be loaded into MDS database." - in which path and in what name it should be.
    Because under /metadata/iam-features-notification, i couldnt see any event Xml present. I thought atleast we could see the existing OOB notification template's event xml files.
    Please let me know if you are aware.
    Thanks,
    Amudha

  • Without IT resource email Server config notification triggering in OIM 11g

    Hello Experts
    Its strange, in some of our environment. We haven't given any value for email server IT resource but still we are getting notification after user creation and so on. Not sure whether any default mail server comes with OIM 11g. We checked with environment team they are saying there is no mail server configured in oracle enterprise linux box by them.
    Could any one help us on this and provide your inputs ?
    Thanks
    DK

    Where are you checking the emails ??
    BTW , these notifications are OOTB and you turn them off by setting a System Property .
    Its something like Recon.SEND_NOTIFICATION , set it to false .
    But w/o email server , you shouldn't receive any email ..
    Thanks
    Suren

Maybe you are looking for