BusinessObjects Board

4.2 SP3 Restful Amend user password

Hi,

I’ve been playing with the restful API for a while now and find it extremely useful in gathering report details. I am now looking to modify user details, passwords.

Using the restful API i can retrieve user details from the system :

GET http://servername:6405:biprws/v1/users/userid

However when I try to amend the user details I keep getting a server 500 message returned. I’ve activated the error stack on the container server, also tried putting the trace level to high, but can’t see anything obvious.

PUT http://servername:6405:biprws/v1/users/userid

Below is a copy of the message body I’m sending :

<entry xmlns="http://www.w3.org/2005/Atom">     
	<title type="text">user</title>     
	<updated>1992-09-03T17:15:00.000+02:00</updated>     
	<link href="http://clinpathauto3:6405/biprws/v1/users/32786" rel="alternate" />     
	<content type="application/xml">         
		<attrs xmlns="http://www.sap.com/rws/bip">             
			<attr name="cuid" type="string">ATmCmJz5tNNMqqyEVv1IRUw</attr>             			
<attr name="forcepasswordchange" type="bool">true</attr>             
			<attr name="id" type="string">32786</attr>             
			<attr name="newPassword" type="string">newPassword</attr>               
		</attrs>     
	</content> 
</entry>

Has anybody managed to get this to work?

Cheers

Alistair


FrustratedScot :uk: (BOB member since 2006-04-27)

Figured this out in the end. Using the following message body I am able to change a password using the RESTful API :

<entry xmlns="http://www.w3.org/2005/Atom">
    <title type="text">user</title>
    <updated>2016-08-17T20:24:24.046Z</updated>
    <link href="http://localhost:6405/biprws/v1/users/32786" rel="alternate"/>
    <content type="application/xml">
      <attrs xmlns="http://www.sap.com/rws/bip">       	
			<attr name="name" type="string">rest</attr>
            <attr name="password" type="string">newPassword1</attr>
			<attr name="passwordexpire" type="bool">true</attr>
      </attrs>
    </content>
</entry>

FrustratedScot :uk: (BOB member since 2006-04-27)