cancel
Showing results for 
Search instead for 
Did you mean: 

Reset Password & Unlock The User.

Former Member
0 Kudos

Hi Friends,

we have the requairment i.e

1) The end user can be able to unlock the his user, if any reasion the user locked.

2) The end user can be able to reset the password or to generate new password, if he forget the password.

Note : The user don't have the authorisations for adminstaraion level access in portal or ECC system.

Please let me know is it possible or not through webdynpro java Applicaion.

If possible let me know how to do?

Thanks & Regards,

Murali

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can have a simple WD application to change the password -

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0c09b9d-52e0-2d10-3981-86bfa8e19...

Now regarding unlocking an account, i believe can be done only through administrator.

/thread/834052 [original link is broken]

Regards,

Mahesh

Former Member
0 Kudos

Hi Mahesh,

I tried password change example, but i am getting the following error.

The initial exception that caused the request to fail, was:

com.sap.security.api.UMRuntimeException: Maint method setAttribute cannot be used because the principal is not mutable!

at com.sap.security.core.imp.AbstractPrincipal.setAttributeValues(AbstractPrincipal.java:2012)

at com.sap.security.core.imp.AbstractPrincipal.setAttributeValues(AbstractPrincipal.java:1999)

at com.sap.security.core.imp.AbstractUserAccount.setPassword(AbstractUserAccount.java:1476)

at com.sap.security.core.imp.UserAccountWrapper.setPassword(UserAccountWrapper.java:276)

at com.passwordresetapp.PasswordResetView.onActionChange(PasswordResetView.java:165)

... 30 more

Thanks & Regards,

Murali

Former Member
0 Kudos

Use mutable user account to change the password.

mutUserAccount.setPassword ;
mutUserAccount.save();
mutUserAccount.commit();

Regards,

Mahesh

Edited by: Mahesh Krishnapillai on Dec 21, 2011 1:50 PM

Former Member
0 Kudos

Hi Mahesh,

Password change for the user is working fine, Please let me know the folloing senario :

How to check if the portal end user is locked or unlocked with webdynpro java?

please let me knkow Is it possible or not ?

If possible let me know the procedure?

Thanks & Regards,

Murali

Former Member
0 Kudos

useraccount.IsLocked() method will return TRUE if locked else it will be unlocked.

Regards,

Mahesh

p330068
Active Contributor
0 Kudos

Dear Murali

Please refer to the UME Security API for more details for available methods.

[http://help.sap.com/javadocs/NW04S/current/se/com/sap/security/api/IUserAccount.html|http://help.sap.com/javadocs/NW04S/current/se/com/sap/security/api/IUserAccount.html]

Best Regards

Arun Jaiswal

Former Member
0 Kudos

Hi Mahesh,

Thanks for ur information.

it is working fine.

One more thing , how to get the mail id and user information like first name , last name and security answer etc. from the user data base and that changed password have to send to that mail.

Please let me know it is possible or not? i didn't found any method for getting mail id in com.sap.security.api API.

Thanks & Regards,

Murali

Edited by: Murali143 on Dec 22, 2011 6:31 AM

Former Member
0 Kudos

Please check the link shared by Arun earlier for these information. Check out for IUser interface.

Regards,

Mahesh

Former Member
0 Kudos

yes mahesh, i checked that link but i didn't found those details.

please let me know.

Former Member
0 Kudos

userAcct.getAssignedUser() to get IUser.

Details of IUser - http://help.sap.com/javadocs/NW04S/current/se/com/sap/security/api/IUser.html

Former Member
0 Kudos

Hi Mahesh ,

Thanks for helping.

Thanks & Regards,

Murali

Answers (1)

Answers (1)

vijay_kumar49
Active Contributor
0 Kudos

Hi,

2.Yes. end user will do this by using Webdynpro JAVA

Please look at this document [Password Change and Reset in WDJ|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f0824360-ca0e-2e10-9495-c9deeb7e0d2d]

Best Regards

Vijay K