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
95

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

wallbertelicot
Explorer
0 Kudos
You may want to look into the "Modifying User Details" section of the RESTful Web Service Developer Guide. The one you listed only modifies it for the current user which would be the one you used when you got the token. https://help.sap.com/docs/SAP_BUSINESSOBJECTS_BUSINESS_INTELLIGENCE_PLATFORM/db6a17c0d1214fd6971de66...

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?