Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Change Password and Unlock User using UME API

Hi,

I am trying to Unlock the user who got locked by entering wrong password at the time of login to the SAP EP portal and then changing the user password.

Below is the code which I am testing for the same

String userId="test1";

IUserAccount iuacc = UMFactory.getUserAccountFactory().getUserAccountByLogonId(userId);

IUserAccount iUserAccount = UMFactory.getUserAccountFactory().getMutableUserAccount(iuacc.getUniqueID());

iUserAccount.setLocked(false,0);

iUserAccount.commit();

iUserAccount.save();

iUserAccount.setPassword("testing3");

iUserAccount.commit();

iUserAccount.save();

The above code is working fine without any errors or exception. But after runnning the code when i login in to SAP EP portal

i could see the user is still locked and password is not changed.

Could someone help me in fixing this problem. I am using SAP EP 6.0 SPS-02 UME APIs

Not what you were looking for? View more on this topic or Ask a question