Resetting a user's password

Ops Center Common Services REST API Reference Guide

Version
10.7.x
File Size
577 KB
Audience
anonymous
Part Number
MK-99OPS003-03
The following request resets the password for a user.

The password of an identity provider user cannot be reset.

Execution permission

You must be a system administrator or a security administrator.

Request line

PUT base-URL/security/v1/users/object-ID-of-the-user/reset-password

Request message

Object ID of the user

Specify the value of id acquired by using the request for getting information about a list of users.

Attribute

Type

Description

id

string

(Required) Object ID of the user

Query parameters
None.
Body
{
    "type": "password",
    "value": "P@ssw0rd"
}

Attribute

Type

Description

type

string

(Required) Type of the auth6entication information to be reset

You must specify password for this attribute.

value

string

(Required) New password

Specify a character string that is no more than 256 characters.

Response message

Body
None.

Coding example

curl -v -X PUT -H "Content-Type:application/json" -s "https://example.com:443/portal/security/v1/users/8b39869a-a778-4a08-a2ff-bf967946e836/reset-password" -d @./request.json  -H "Authorization:Bearer eyJhbxxx"
Tip: Because this request uses SSL communication, you must either run the curl command with the root certificate of the Common Services server certificate specified for the --cacert option, or run the command with the -k option specified. (The -k option runs the command by ignoring SSL errors.)