search cancel

How to update a Spectrum User's Password using REST API?

book

Article ID: 213387

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction


How to update a Spectrum User's Password using REST API?

Environment

Release : 20.2, 21.2

Component : Spectrum OneClick

Resolution


To change a user's password via REST, you can use the following URL:

PUT:  http://<HOSTNAME>:<PORT>/spectrum/restful/model/<userModelHandle>?attr=0x11f9a&val=<password>

Example:

PUT:  http://oneclickserver.acme.net:8080/spectrum/restful/model/0x10000a0?attr=0x11f9a&val=password

0x10000a0 - This is the model_handle attribute for a specific user model in the environment.

password - This would be the password value set for the user.



Additional Information


Note: OneClick AES-256 encrypts the entered password before setting it internally