From RPM Wiki
| Table of contents |
[edit]
Summary
API: Change the password for a user
[edit]
Request
A username and a new password are always required
{
"Key":"{api key}",
"Username":"{username}"
"Password":"{new password}"
}
[edit]
Examples
http://demo.rpmsoftware.com/rpm/Api.svc/UserPasswordEdit
{
"Key":"abc123def456",
"Username":"jsmith"
"Password":"123abc456"
}
[edit]
Security
[edit]
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
[edit]
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.
[edit]
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.
[edit]
Response
If successful the username is returned, otherwise an error is returned
{"UserPasswordEditResult":
{
"Username":"{username}",
}
}
[edit]
Example
{"UserPasswordEditResult":
{
"Username":"jsmith",
}
}
[edit]
Errors
- "User not found"
- "Permission denied"
- "Invalid password" - See Username & password rules
[edit]
History
- Festivus: Feature added
- This page was last modified 16:59, 25 Jan 2010.
- This page has been accessed 743 times.
