cancel
Showing results for 
Search instead for 
Did you mean: 

Change password

Former Member
0 Kudos

Hi,

I am working with EP 6.0 sp 9.

Is it possible for a user to change his or her own password without knowing the old password?

I want to have an IView where the user can submit their username and change their password at the same time.

Is there an exiting iView that have this functionality?

I have been looking at the IView:

pcd:portal_content/com.sap.pct/admin.templates/iviews/com.sap.portal.persoUserPassword

^= component com.sap.portal.usermanagement.admin.Password

but it does not really solve my requirements.

Any suggestions?

Regards,

Gun

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Gun,

An user can't change his or her password without knowing the old. An administrator can only change an user password without knowing the old. Administrator can set an initial password. Then the user can again have the option to resubmit his or her password. I think there is no standard iview.

But 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.

Thanks and Regrds,

Sekhar

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Gun,

Sekhar is right there is no standard iView that allows you to change your password without knowing it. Of course an administrator can set a new password for a user without knowing the old password but first time the user uses the new password s/he is prompted to change the password again.

I had a closer look at the <a href="https://help.sap.com/javadocs/NW04S/current/se/index.html">Security API</a> and the class <a href="https://help.sap.com/javadocs/NW04S/current/se/com/sap/security/api/IUserAccount.html">IUserAccount</a>. Also there is a method to set the password without knowing the old password you cannot use it for your purpose. If you use the method <a href="https://help.sap.com/javadocs/NW04S/current/se/com/sap/security/api/IUserAccount.html#setPassword(java.lang.String)">set Password(String newPassword)</a> the user will be promted to enter a new password next time s/he logs into the portal. You will find the limitation described in the description of method <a href="https://help.sap.com/javadocs/NW04S/current/se/com/sap/security/api/IUserAccount.html#setPasswordChangeRequired(boolean)">setPasswordChangeRequired(boolean chng)</a>.

Best regards,

Martin