Skip to Content
author's profile photo Former Member
Former Member

reset password application


I am working with Netweaver Studio in a PDK 6.0 application. I want to create an application that reset the password of the portal user and send and email with the new passsword.

Does someone knows there is a method in the UME api or somewhere else that let me manage this kind of process??

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 21, 2005 at 12:57 AM

    Hi Marysol,

    The following code has everything you need.

    String uniqueId = uaf.getUserAccountByLogonId("hsharma").getUniqueID();
    IUserMaint user  = UMFactory.getUserFactory().getMutableUser(uniqueId);
    IUserAccount ua = UMFactory.getUserAccountFactory().getMutableUserAccount(uniqueId);
    String password = "xxxx";
    SendMailAsynch sendemail = new SendMailAsynch();
    IUser performer = request.getUser();	  SendMailAsynch.generateEmailOnUMEvent(performer, user, "pswd_reset_performed", null, password);

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      HI Prakash,

      I've deployed the similar application on EP. The password has been reseted successfully and there is no excepion throwed. But the user couldn't get the respons email. Do you know what has caused this issue ? Do we have to restart the server engine after deployed par on Portal?

      Thanks in advance.

      The source code is as bellow,

      if (null != userObject&& userObject.getEmail().equalsIgnoreCase(userEmail.getValue().toString())) {

      IUserAccount ua = UMFactory .getUserAccountFactory().getUserAccountByLogonId(uid);

      IUserAccount mua =UMFactory .getUserAccountFactory() .getMutableUserAccount(ua.getUniqueID());

      String password =








      "You password of userID in Portal system has been reset. Please logon and change password as soon as possible.",



      "Password Reset successful and was sent to your email.");


      } //end if


      } //end try

      catch (UMException e) {


      "The userID does not exist, please input the right userID or contact authorization administrator directly.");

      } //end catch

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.