Skip to main content

show-user-profile-settings-auth-details-update-profile-settings-remove-user

Method shows/edits/removes user

  • GET - view user information/settings
  • POST - edit user settings
  • DELETE - remove user

Parameters

No additional parameters

Getting user information

Return user information, settings and auth credentials.

Note: For editing administrative account details you can use admin instead of numeric user id, like: https://ws.idibu.com/ws/rest/v1/users/admin?hash=[your_hash] . You can also use admin logins for that:

https://ws.idibu.com/ws/rest/v1/users/admin?user=[username]&password=[password]

Example

Request

https://ws.idibu.com/ws/rest/v1/users/485?hash=[your_hash]

Response

<?xml version="1.0" encoding="utf8"?>
<idibu generator="idibu" version="1.0">
<response>
<profile>
<id>485</id>
<title></title>
<firstname>vit</firstname>
<lastname>Dyatlov</lastname>
<company>Idibu</company>
<team-id>33000183</team-id>
<contacts>
<address>Tiraspol, Moldova 3357</address>
<address-line1>Tiraspol</address-line1>
<address-line2></address-line2>
<address-line3></address-line3>
<country>Moldova</country>
<postcode>3357</postcode>
<email>vitaly@idibu.com</email>
<phone>+373 0 777 15818</phone>
<fax></fax>
<www>idibu.com</www>
</contacts>
</profile>
<settings>
<alerts>
<job-expiry>Off</job-expiry>
<new-applicant>Off</new-applicant>
</alerts>
<apsearch>
<enable>Yes</enable>
<results>email</results>
<step1>Yes</step1>
</apsearch>
<access-report>No</access-report>
</settings>
<auth>
<disabled>No</disabled>
<login>myPrivatelogin</login>
<password>somep4ssword</password>
</auth>
</response>
<status>success</status>
</idibu>

Updating user information

To update user information need to pass xml of the same format as in response to the GET request in data parameter. Any field or block can be omited, pass in the xml only those fields which you need update. You can send both login and password fields empty to remove the user's login.

Example

Data posted

POST https://ws.idibu.com/ws/rest/v1/users/485?hash=[your_hash]
<?xml version="1.0"?>
<idibu>
<profile>
<firstname>updated-user</firstname>
</profile>
<auth>
<login>vitaly</login>
</auth>
</idibu>

Response

<?xml version="1.0" encoding="utf8"?>
<idibu generator="idibu" version="1.0">
<response>
<message>User updated</message>
</response>
<status>success</status>
</idibu>

Deleting user

To delete user you need to use a DELETE request

Example

Request

DELETE https://ws.idibu.com/ws/rest/v1/users/485?hash=[your_hash]

Response

<?xml version="1.0" encoding="utf8"?>
<idibu generator="idibu" version="1.0">
<response>
<message>User has been deleted</message>
</response>
<status>success</status>
</idibu>