IBM Support

How to change password by REST API in IIAS?

How To


Summary

You can change password for DB user by REST API in IIAS as follows.

curl -k -u "bluadmin:<bluadmin password>" -H 'Content-Type: application/json' -H
'Accept: text/html' -d '{"id":"<user id>","old_password":"<old password>","new_password":"<new password>"}' -X PUT https://<host url>:<port no>/dashdb-api/v2/users/<user id>

Sample:
[apuser@node0101 ~]$ curl -k -u "bluadmin:bluadmin" -H 'Content-Type: application/json' -H 'Accept: text/html' -d '{"id":"test01","old_password":"Abcdefghij1$","new_password":"Abcde2$fghij"}' -X PUT https://9.xx.xxx.xx:8443/dashdb-api/v2/users/test01
{"password":"************************************************************","metadata":{"updated_at":"20181106080503Z","guid":"test01","created_at":"20181106064557Z","url":"https:\/\/null\/dashdb-api\/v2\/users\/test01"},"role":"bluuser","name":"Testuser","id":"test01","locked":"no","email":"testuser@jp.ibm.com","authentication":{"method":"internal","policy_id":null}}
[apuser@node0101 ~]$

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSHRBY","label":"IBM Integrated Analytics System"},"Component":"","Platform":[{"code":"PF004","label":"Appliance"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}},{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCJDQ","label":"IBM Db2 Warehouse"},"Component":"","Platform":[{"code":"PF004","label":"Appliance"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
17 October 2019

UID

ibm10739197