Reset Users passwords (Known Value)

put

/cloudapi/restapi/user/manual-reset-pwd/{isEmailPasswd}

This operation resets the password for a set of users. The password for each user is set to the password string supplied in the user object. The operation can also notify the user regarding the password reset if required. 'changePwdAtNextLogin' is a read only field and always set to false.

Request

Path Parameters
  • Controls whether an email notification should be triggered to each user regarding password-reset operation.
Body ()
Array of user objects whose passwords to be reset
Root Schema : List<UserRO>
Type: array
Title: List<UserRO>
Show Source
Nested Schema : User
Type: object
Show Source
Nested Schema : CloudTZDateTime
Type: object
Show Source
Nested Schema : Organization
Type: object
Show Source
Nested Schema : password
Type: array
Show Source
Nested Schema : roles
Type: array
Show Source
Nested Schema : associations
Type: array
Unique Items Required: true
Show Source
Nested Schema : PwdPolicy
Type: object
Show Source
Nested Schema : Role
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : User
Type: object
Show Source
Nested Schema : CloudTZDateTime
Type: object
Show Source
Nested Schema : Organization
Type: object
Show Source
Nested Schema : password
Type: array
Show Source
Nested Schema : roles
Type: array
Show Source
Nested Schema : associations
Type: array
Unique Items Required: true
Show Source
Nested Schema : PwdPolicy
Type: object
Show Source
Nested Schema : Role
Type: object
Show Source

400 Response

Invalid input, Please check.
Back to Top

Examples

Method

PUT

Response Content Type

application/json

Operation

/cloudapi/restapi/user/manual-reset-pwd/{isEmailPasswd}

cURL Example

REQUEST URL: http://<hostname>:<port>/cloudapi/restapi/user/manual-reset-pwd/true

curl -X PUT http://<hostname>:<port>/cloudapi/restapi/user/manual-reset-pwd/true -H 'accept: application/json' -H 'content-type: application/json' -d

'[ {"password":["P","a","s","s","w","o","r","1"],"loginId": "JSMITH"},

{"password":["P","a","s","s","w","o","r","1"],"loginId": "DPATEL"}

]'

Request Body Example

[

{

"password": [

"p","a","s","s","w","o","r","d"

],

"loginId": "JSMITH"

},

{

"password": [

"p","a","s","s","w","o","r","d"

],

"loginId": "DPATEL"

}

]

Response Body Example

{

"loginId": "JSMITH",

"disabled": false,

"locked": false,

"password": "password",

"pwdExpired": false,

"pwdCantChange": false,

"pwdWarned": false,

"changePwdAtNextLogin": false

}

{

"loginId": "DPATEL",

"pwdExpired": false,

"pwdCantChange": false,

"pwdWarned": false,

"locked": false,

"changePwdAtNextLogin": false,

"disabled": false,

"password": "password"

}

Back to Top