Skip to Content
0
Former Member
Jan 15, 2008 at 02:07 PM

Company ChangePassword

23 Views

I am using SAPbobsCOM, Version=2005.0.0.0.

When I call company.ChangePassword method, I get "The method or operation is not implemented.

However I am able to change the password via Users Class.

Users user = (Users) Company.GetBusinessObject(BoObjectTypes.oUsers);

user.GetByKey(60);

user.UserPassword = PasswordGenerator.GenerateRandomPassword();

user.Update()

Problem:

LastPwdSet field of OUSR is not updated accordingly. I am afraid that the System will not recognize that the password has really changed.

After I change the password, I am able to login with the new password but I believe the system will expire password before the Password Validity period, which is 120 days

I would really appreciate it if someone can help me with this problem

Regards

Imran Masud