Component : Spectrum OneClick
To change a user's password via REST, included curl commands below as examples:
Syntax:
curl -ku <spectrum-user> --location --request PUT https://<Oneclick-URL>:<Port>/spectrum/restful/model/<userModelHandle>?attr=0x11f9a&val=<password>'
Example Command:
curl -ku spectrum --location --request PUT 'https://myoneclick:8443/spectrum/restful/model/0x10000a0?attr=0x11f9a&val=NewPassword123!'
Example Successful Output:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><model-update-response-list xmlns="http://www.ca.com/spectrum/restful/schema/response"><model-responses><model error="Success" mh="0x10000a0"><attribute error="Success" id="0x11f9a"/></model></model-responses></model-update-response-list>%
Legend:
0x10000a0 - This is the model_handle attribute for a specific user model in the environment. (example value)
0x11f9a = Password attribute to be changed (constant value)
<password> - Password value to be set
Note: OneClick AES-256 encrypts the entered password before setting it internally