Support Questions

Find answers, ask questions, and share your expertise

CDM change admin password using rest api

avatar
Explorer

Is it possible to change the Cloudera manager admin password using the rest api?

how to do it?

 

I'm using CDM 5.7

 

1 ACCEPTED SOLUTION

avatar
Master Collaborator

Here's an example;

 

$ curl -v -X PUT -u admin:admin -H 'Content-Type:application/json' -d '{ "password" : "new_password" }' 'http://cm.example.com:7180/api/v12/users/type_the_username_here'

 

[1] https://cloudera.github.io/cm_api/apidocs/v12/ns0_apiUser.html

View solution in original post

1 REPLY 1

avatar
Master Collaborator

Here's an example;

 

$ curl -v -X PUT -u admin:admin -H 'Content-Type:application/json' -d '{ "password" : "new_password" }' 'http://cm.example.com:7180/api/v12/users/type_the_username_here'

 

[1] https://cloudera.github.io/cm_api/apidocs/v12/ns0_apiUser.html