AVAILABLE WITH BUSINESS SUBSCRIPTION

Request: POST /user/{user_id}/password

Permissions to Run the Request

Account Owner, Account Administrators, Department Administrators, or custom roles

Department Administrators and users with a custom role can add users only to the departments they manage and their sub-departments.

 

Request Headers

HeaderDescription
Authorization (required)Access token. You can obtain a token by making a request
ParameterDescription
user_id (required)

The ID of the user whose password you would like to change

password (required)The new password

Password complexity rules can be set up in the Settings section

Possible Response Codes


CodeTextDescription
200Successful operationThe password has been changed
400Bad RequestA request error
401UnauthorizedAn authorization error
403Permission DeniedThe user doesn't have enough permissions to update another users' passwords, For instance, Department Administrators can't change passwords of users belonging to a department they don't manage

 

Sample Request

POST /user/43f4a84c-6280-11e9-8686-a6210366ac32/password https/1.1
Host: api-learn.ispringlearn.com 
Authorization: p-1sJDjmULL5DdpXPJTcbm4jVIaWVHvNmrjAxATRbNE 
Content-Type:application/xml

<?xml version="1.0" encoding="UTF-8"?>
<request>
	<password>string</password>
</request>
XML

Sample Response

https/1.1 200 OK
Connection: close
XML