cancel
Showing results for 
Search instead for 
Did you mean: 

How can I update user password with sap bo rest api?

Can4
Explorer
0 Kudos
266

Hi

I want to update user password. I found below informations.

POST http://host:<port>/biprws/v1/users/password

Request body;

{
   "oldpassword":"",
   "newpassword":""
}

But I dont have a oldpassword I want to assign the new password directly without using the old one because I dont have oldpassword. How can I update user password with only using new password or how can I get oldpassword to using above method.

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

ayman_salem
Active Contributor
0 Kudos

Not possible for security reasons, if you do not have the old password, you cannot change the password

Can4
Explorer
0 Kudos
IUser user = (IUser)tmpUser; user.setNewPassword(MD5.getUserPassword(userID)); This code, written using Java SDK, does not require the old password. Isn't there an equivalent for this in the rest service?