Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

CDM change admin password using rest api

Solved Go to solution
Highlighted

CDM change admin password using rest api

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

Accepted Solutions

Re: CDM change admin password using rest api

Super 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

Re: CDM change admin password using rest api

Super 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

Don't have an account?
Coming from Hortonworks? Activate your account here