Self admin
Self admin operations allow a user to perform actions on the user’s own info.
Calls to the self admin operations are disabled by default. You’ll have to edit the rest.properties
file (more info at the REST services page) and add the line:
/rest/security/self/**;GET,POST,PUT,DELETE=ROLE_AUTHENTICATED
/security/self/password
Allows a user to change own password
Warning
The use of HTTPS is recommended, otherwise all password are sent in plain text.
Method |
Action |
Status code |
Formats |
Default Format |
---|---|---|---|---|
PUT |
Changes the user password |
200,400,424 |
XML, JSON |
Formats for PUT (password change).
XML
<userPassword>
<newPassword>newPassword</newPassword>
</userPassword>
JSON
{ "newPassword":"newPassword" }
Exceptions
Exception |
Status code |
Error string (payload) |
---|---|---|
PUT with an invalid |
400 |
|
PUT for user not updatable |
424 |
|