Api/UserPasswordEdit

From RPM Wiki

Table of contents

Summary

API: Change the password for a user

Request

A username and a new password are always required

{
  "Key":"{api key}",
  "Username":"{username}"
  "Password":"{new password}"
}

Examples

http://demo.rpmsoftware.com/rpm/Api.svc/UserPasswordEdit

{
  "Key":"abc123def456",
  "Username":"jsmith"
  "Password":"123abc456"
}

Security

Error

  • The password of admin users can never be changed by API - return "User not found" error
  • The password of users in other subscriptions can never be changed - return "User not found" error
  • The password of locked users can not be changed by API - return "Permission denied" error

Staff users

  • Non-locked staff users can be changed, but only if the API user is in the super user role. If not return "Permission denied" error.

Agent users

  • To change the password of an agent user the API user role must have the "Edit reps, managers" privilege. If not return "Permission denied" error.

Response

If successful the username is returned, otherwise an error is returned

{"UserPasswordEditResult":
  {
    "Username":"{username}",
  }
}

Example

{"UserPasswordEditResult":
  {
    "Username":"jsmith",
  }
}

Errors

History

  • This page was last modified 16:59, 25 Jan 2010.
  • This page has been accessed 743 times.