Reply
Highlighted
Explorer
Posts: 9
Registered: ‎08-24-2015
Accepted Solution

Adding user to Cloudera Manager using REST API

Hi,

 

Please help me if any one tried adding new user to cloudera Manager using REST API calls ?

 

I heard the option  /api/v10/users/userList has some option , please let me know if anyone tried this option ?

 

Regards,

Sijeesh

Posts: 642
Topics: 3
Kudos: 105
Solutions: 67
Registered: ‎08-16-2016

Re: Adding user to Cloudera Manager using REST API

I just tried it. It is just a POST to the /api/v10/users endpoint.

curl -u uname:passw -H "Content-Type: application/json" -X POST -d '{ "items" : [ { "name" : "matt", "password" : "test" } ] }' http://cm_host:7180/api/v15/users
Explorer
Posts: 9
Registered: ‎08-24-2015

Re: Adding user to Cloudera Manager using REST API

Thanks ..it worked.
Announcements