Unable to get User Email Using PDK API

I have to get portal user email in my jsp portlet. I have use the PDK API :
PortletRenderRequest pr = (PortletRenderRequest) request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
String Email = pr.getUser().getEmail();
But the result of Email is null and i have inserted the user email in portal user profile. Does anybody can help me on this?
Thanks
Siti

What's your Portal version? In 9.0.2.6 and above you can retrieve Email information from the Oracle Internet Directory (OID).
Take a look at the Installing the Oracle Internet Directory Portlets and the An Overview of Provider & Portlet Security PDK articles.
Peter

Similar Messages

  • I am unable to open encrypted emails using webmail and a CAC reader.  It says "content can't be displayed because the S/MIME control isn't available."  I'm using a Macbook Pro with 10.10 OS and have tried both Safari and Chrome.

    I am using a Macbook Pro with OS X Yosemite 10.10.2.  I am unable to open encrypted emails using webmail.  I have verified my certificates are loaded in the keychain for my military common access card while using a CAC reader.  When I try to view the message it gives me the error saying "content can't be displayed because the S/MIME control isn't available." 

    I am using a Macbook Pro with OS X Yosemite 10.10.2.  I am unable to open encrypted emails using webmail.  I have verified my certificates are loaded in the keychain for my military common access card while using a CAC reader.  When I try to view the message it gives me the error saying "content can't be displayed because the S/MIME control isn't available." 

  • Returning error while listing  reportees of a user by using worklist api.

    Hi,
    I am trying to list reportees of a user by using bpel worklist APi in custom application.the following is the code fragment of that:
    BPMUser bpmUser = gu.getWorkflowServiceClient().getAuthorizationService("dm.hoogly").lookupUser(gu.getWorkflowServiceClient().getTaskQueryService().getWorkflowContext("dm.hoogly").getUser());
    List directs = bpmUser.getReportees(1);
    System.out.println(" size..."+directs.size());
    its retuning error.
    Can any one help me how to list a reportees of a user by using BPELworklist api
    thanks
    Murali

    Hi..
    I am using 10.1.3.3 SOA suite.
    thanks
    Murali

  • How do you resolve the issue with an error message on the Mac mini server stating Unable to get users

    How do you resolve an issue when creating groups on a Mac Mini Server when this error message appears.
    "Unable to get Users & Groups State, The Open Directory master was created, but a problem was encountered trying to refresh the state of the server. Check log files for more info."

    Most likely, the Server was not configured correctly - DNS is a common issue, If DNS is not configured properly, OD will not be happy. You can run
    sudo changeip -checkhostname
    in Terminal to see of DNS is up and running.
    Here's a great tutorial (not mine) for setting up OS X Servers. The page says it's for a typical school environment, but it can be applied in many other environments.
    http://www.wazmac.com/servers_network/fileservers/osxserver_setup/index.htm
    hth
    Jeff

  • Lion successfully installed. now unable to get on vpn using cisco, error 51 constantly appears. should have stayed on snow leopard!

    ion successfully installed. now unable to get on vpn using cisco, error 51 constantly appears. should have stayed on snow leopard!

    Try opening a terminal window (Applications >> Utilities). At the prompt, enter:
    >sudo SystemStarter restart CiscoVPN
    This will ask you for the admin password and it will restart the Cisco client service. That should fix it. This seems to be a known issue that will eventually be solved with some updates.
    DB

  • Error 2003000:unable to get users

    i create an odbc file from excel. when i try to load excel files from essbase integration services i get the following error 2003000:unable to get users.
    Does anyone know how to connect essbase integration services from excel?
    Thanks in advance

    hi...
    did u get solution to ur this problem...
    me also having the same error

  • OIM11gr2 - How to get currently logged in user details using oim api

    Hi All,
    I have a requirement to retrieve currently logged in users profile in the process adapter.
    I have tried with getSelfProfile in tcUserOperation and also ContextManager.getOIMUser API's however, in both the cases i am getting xelsysadm details only.
    Also as know request details in Process task mapping doesnot work for OIM11g onwards (its returning column not found exception )
    DOes any one has idea how to achieve this.
    PS. - i am using platform to retrieve API's.
    Thanks & Regards
    Swati Pandey

    You can get the logged in user name using the below java code:
    ADFContext adfCtx = ADFContext.getCurrent();
    SecurityContext secCntx = adfCtx.getSecurityContext();
    String user = secCntx.getUserPrincipal().getName();
    HTH

  • System_Mail_Send - Get user email address

    Hi,
    I am trying to use System_Mail_Send to send a notification in the end of a Job Chain.
    How I can retrieve user email address from SAP CPS user(UME)?
    I want to use this information as To destination.
    Regards,
    André Ferreira

    Hi Andre,
    Actually, I had no time to test what I wrote earlier ... the code below should work in a library source:
    // Example code to illustrate
    package masalan;
    import com.redwood.scheduler.api.model.SchedulerSession;
    import com.redwood.scheduler.api.model.Subject;
    import com.redwood.scheduler.api.model.enumeration.SubjectType;
    import com.redwood.scheduler.api.scripting.variables.*;
    public class user
    public static String getEmailAddress(String username)
         //Default email address is [email protected]
          String defaultEmail = "[email protected]";
          if (username == null || username.trim().isEmpty()) return defaultEmail;
          SchedulerSession jcsSession = ScriptSessionFactory.getSession();
          Subject subject = jcsSession.getSubjectByTypeName(SubjectType.User,  username);
          String email = "";
          if (subject != null) email = subject.getEmail();
          if (email != null && email.endsWith("@company.com")) return email;
          return defaultEmail;
    You create REL entry points:
    Name - getEmail
    FQ Class Name - masalan.user
    Method Signature - getEmailAddress(String)
    Now, create a parameter Username on the job chain.
    Parameter To should have  the value =Custom.getEmail(chainParameters.Username)
    You specify the username in the Username parameter, the email address will be retrieved from CPS. The user must have logged on to CPS at least once, alternatively, you can import the user.
    Note that to import the user, you must assign at the very least the AccessScheduler action in UME.
    Regards,
    HP
    Message was edited by: h. Carpenter - missed an import and add SchedulerSession
    Message was edited by: h. Carpenter - Improved error handling, more secure code (it uses default email address if anything goes wrong or if somebody tries to use an external email address)

  • I am not able to send email using JAVA API to outer email

    If I am trying to send email from my company account to yahoo I am getting following errors:
    javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay
    for [email protected]
    at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
    at javax.mail.Transport.send0(Transport.java:169)
    at javax.mail.Transport.send(Transport.java:98)
    at MailSend.main(MailSend.java:116)
    Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to rel
    ay for [email protected]
    at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047)
    ... 4 more
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for mkba
    [email protected]
    at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
    at javax.mail.Transport.send0(Transport.java:169)
    at javax.mail.Transport.send(Transport.java:98)
    at MailSend.main(MailSend.java:116)
    Please let me know the reason for the same.

    Unable to relay - This happened because your Company network don't permit relay. Do talk to the network administrator and check with way safe you can send.
    I got the same problem, now im using through gmail.

  • GetSelectedFields()  for time stamp and user stamp using java api

    using Java API's
    getSelectedFields() returns NULL  value if values presented also, for Time stamp and User stamp
    properties in Flat tables , is there any other alternative way to get the SelectedFields values ?
    Edited by: Vijaya Sekhar Reddy Alla on Mar 19, 2008 3:16 PM

    Well, I can't say I solved the problem, because I got another one afterwards.
    As usually I created a GetFieldListCommand, set its needed attributes and executed it. Then I read all the field properties out:
    FieldProperties[] fieldProp = getFieldListCommand.getFields();
    Afterwards it is possible to do what you want. Using a for-loop.
    for (FieldProperties fp : fieldProperties) {
        UserStampFieldProperties usfp = (UserStampFieldProperties) fp; // <= Cast error
        FieldId[] fieldIDs = usfp.getSelectedFields();
    And this is what I get now:
    Exception in thread "main" java.lang.ClassCastException: com.sap.mdm.schema.fields.FixedWidthTextFieldProperties cannot be cast to com.sap.mdm.schema.fields.UserStampFieldProperties
    Why this happens, I don't know. But it should somehow be solveable.

  • Getting User Details using objectid

    Hi,
    First i am querying the projects using ALUI IDK
    ===========
    IProjectManager projectManager = GetProjectManager(Request, Response);
    IProjectFilter projectFilter = projectManager.CreateProjectFilter();
    projectFilter.NameSearchText = searchText;
    Plumtree.Remote.PRC.Collaboration.Project.IProject[] projects = projectManager.QueryProjects(projectFilter);
    =================
    then i am retreiving User IDsadded as Project Leader
    ========================
    IRole role = null;
    RoleTypes roleType = RoleTypes.Leader;
    role = project.GetRole(roleType);
    int[] GroupID = role.GetMemberIDs(MemberQueryTypes.AllGroups);
    Display Group ID
    =========================
    Now the issue is i am not able to figure out how to get the users detail ie authusername, login name etc present in the groups that are retrieved.
    Regards,
    Ankit
    Edited by: electrazy on Jul 18, 2011 11:39 AM
    Edited by: electrazy on Jul 20, 2011 2:22 AM

    Hello electrazy,
    This is not possible from within the IDK. The best you can get are the Extended Data properties that are associated with the user object in the Global Property Map. If you want to get user information like the authentication name and the login name, you'll have to use the Portal Server API or directly query the database.
    -Mike Headley, WCI Developer Support

  • Exclude create user statements using datapump API

    I’m trying to perform a schema import and exclude the "create user" statements using the datapump API but I can’t get the syntax correct for the dbms_datapump.metadata_filter call.
    Using impdp I use a parfile that includes the following statements:
    schemas=bob, john
    exclude=user
    How do I achieve the same effect using the dbms_datapump.metadata_filter API?
    Any assistance greatly appreciated.
    Gavin

    Did you ever figure out your issue? I'm having the same issue after I try to set attributes.

  • Unable to get parameter by using a controller in OAF

    Hi!
    I'm new using OAF and will appreciate your help a lot!!
    FYI:
    Basically I have to add 2 descriptive flexfields in a page (by creating a VO) and I have to update the table with the information registered on those dff (I've done all the logic already).
    I created a Controller (CO) which calls a method declared in an Application module (AM) that executes a store procedure (the CO and AM have been created by me and they extend a standard CO and AM).
    Problem:
    However, just before updating.. I'm having a problem because I'm unable to get a parameter by using paramContext.getParameter("reqHeaderId"); that will help me to identify which row I need to update.
    Since the instruction is not capturing the value, it returns null and I got the following error when I try to convert it to Number: oracle.apps.fnd.framework.OAException: java.lang.NumberFormatException: null
    It's really important to mention that before getting to the page where I click the submit button that does the logic mentioned.. there are 2 pages before the one where I'm trying to capture the parameter and the parameter needed is set on the 1st page. I've been checking each standard CO of the 3 pages and they use the instruction pageContext.putParameter("reqHeaderId"); to pass it between the 3 pages (As far as I know, if not please correct me). On the 3rd and last standard CO it uses pageContext.getParameter("reqHeaderId"); to get the value and do some other logic.
    So why Im not getting the value if I do the same thing (pageContext.getParameter("reqHeaderId");) on my xxController (which extends the standard CO)?
    Here is the code of the controller:
    public class xxController extends standardController {
       public void processRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processRequest(pageContext, webBean);
       public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processFormRequest(pageContext, webBean);
        String str;
        str = pageContext.getParameter("_FORM_SUBMIT_BUTTON");
           if ((str != null) && (str.equals("SubmitButton")))
               String ReqHeaderId = pageContext.getParameter("reqHeaderId");
              String ReqLineId = pageContext.getParameter("reqLindId");
            Serializable[] parameters1 =
             ReqHeaderId
             ,ReqLineId
            ,pageContext.getParameter("xxavtBienServicio")     //dff
            ,pageContext.getParameter("xxavtAttribute3")         //dff
            String var = (String)am.invokeMethod("updateAttributes", parameters1);    // updateAttributes is the method that converts ReqHeaderId to number and executes my store procedure
    thank you for your help in advance!

    You need to verify that the parameter is being added to the pageContext from the first page to the last. You can do this by downloading the pages and all the class files to your development environment and put them into the myClasses directory. Then once you get it so it can be run in JDeveloper, you can actually invoke the debugger and do a watch on the page context for that parameter. It is important to note that you may need to download more than just those specific pages depending upon the setups of the supporting pages. I generally find it easier to just download everything for a particular application to my classes directory so I am not forever trying to find missing class files. Even then if they call some utility classes, you will need to download them to the JDevelper on your PC into the classes directory.  But once you are able to run the pages in JDeveloper you will be able to do a lot more with the debugger.
    Kristofer

  • Realm - get user email address

    I've successfully connected to realm and returned the user groups, now im trying to return some extra details about the user such as their email address.
    I can return the roles of the user by setting
    userRoleName="memberOf"
    and I can get the email address by setting
    userRoleName="mail"
    But I dont seem to be able to return both. Im totally lost on this so any help is much appreciated. All I need is a pointer in the right direction.
    Many Thanks in advance

    no problem :)
                             <Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"
                                  connectionURL="ldap://xxxx/"
                                  connectionName="xxx"
                                  connectionPassword="xxx"
                                  userBase="OU=xxx,DC=xxx,DC=xx,DC=com"
                                  userSearch="(sAMAccountName={0})"
                             userRoleName="memberOf"
                                  roleSubtree ="true"
                                  userSubtree="true"                         
                             />
    Like I said changing the userRoleName="memberOf" line to ="mail" does return the email address of the user instead

  • Unable to set up email, use BBM or App World

    Hi. I recently purchased the Blackberry Curve 3G 9300 v5 under Vodafone Australia but I haven't been able to set up email, use BBM or the App World. I've already installed the Desktop Software and BBM and App World from this website (the person at the shop apparently didn't do a thing). Here are the errors I received -
    1) I don't have the I would like to create new email account option, I only have the I want to use a work email account with Blackberry Enterprise Server option
    2) When I add someone's BBM pin, they don't receive notification for it and it's stated as pending on my side. When they try to add me, I don't receive anything to inform me to add them
    3) When I go to the App World button, I get the message Blackberry App World is having trouble connecting to the server, Verify your network connection then when I try to download it again at this site - I get the message 
    Sorry, your device does not meet the system requirements that are needed to support BlackBerry App World.
    Please help. I've gone to the shop where I bought this from but they were not very helpful. I need to know if they didn't set up my account properly so I can ask them to fix it. Thank you!

    Hi! I've contacted my provider and it turns out my account wasn't activated after a week! It's fixed now, thanks!

Maybe you are looking for

  • Can we create purchase order through report programming?

    hi experts..... can we create purchase order through report programming?If yes plz give me the thread details?

  • How can I install Dreamweaver CS5.5 using my serial number? I only see the trial download for CS6.

    My company bought CS5.5 Creative Suite, and one of my coworkers used our license for Dreamweaver on his computer. Now he has left the company, and I would like to install the license on my computer so I can use it from my station. When we installed t

  • In range and coerce with complex numbers?

    I have an array of complex numbers with these numbers I need to set to 0 all numbers whose real parts are negative. With "in range and coerce" I can split the array into real and imaginary then set all negative numbers to 0 then recombine the complex

  • Naming convenction

    hi i am new to ABAP.when i went through standard tables like MARA certain fields are like this "/bev1/kunnr'.i want to know the reason why it is named like this

  • Xml error message

    Hi, im using file inbound adapter and done all the configuration in repository and directory when i start the adapetr engine i get the following error Error when determining inbound interface. No inbound interface found for sender XI1 and outbound in