cancel
Showing results for 
Search instead for 
Did you mean: 

Changing User Password...

Former Member
0 Kudos

Hai all,

I have created one application to change current user password..

//Code..

useraccount=UMFactory.getUserAccountFactory().getMutableUserAccount(currentuser.getUniqueID());

useraccount.setPassword(password);

useraccount.setPasswordChangeRequired(false);

useraccount.save();

useraccount.commit();

//this code is working fine.... but on next logon it is asking for changing password (error: password expired)

i also tried with

useraccount.setPassword(oldpassword,password);

but it is throwing some error like CHANGE_PASSWORD_NOT_ALLOWED

These user account are created through R3 system

Please help me.....

With Regards

Eldose

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

go through dis thread

/thread/14822 [original link is broken]

i only knew it through RFC model.....see if u can get some help

Former Member
0 Kudos

It's great...

Can u please tell me

Why on the next logon it is asking for changing password even if i set the property setPasswordChangeRequired(false)...

or

Why i can't use the option setpassword(oldpassword,newpassword)

With Regards

Eldose

Answers (2)

Answers (2)

Former Member
0 Kudos

/thread/13700 [original link is broken]

/thread/13270 [original link is broken]

Former Member
0 Kudos

if you use R3 server as UME then you can make a RFC that change the user password as you want and then call that RFC (model) in developer studio...you can make an iview and integrate it in portal.

SUSR_USER_PASSWORD_CHANGE_RFC

Former Member
0 Kudos

Hai Kanwalpreet,

Your message is very useful... but I need to create webdynpro application using UME API's similar to one in myprofile link.

I can reset password using above code.... but it is asking for change password on next login....

Is there any option to avoid that .....

or

It is only possiible through RFC model...

With Regards

Eldose