Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

User extraction from Hue and Cloudera manager

avatar
New Contributor

Hi all,

I need to extract the user present on Hue and Cloudera manager clients.

 

The aim is to automate the users extraction and to put them into a text file to sent to another system.

 

Could you please assist me?

 

Kind regards

Massimiliano Ruspa

2 REPLIES 2

avatar
Contributor

Hi Massimiliano,

 

There are 2 ways to extract users from Cloudera Manager.

 

1. Directly run query on the CM backend database to extract the users. 

2. Use /users GET API call to get the list of users that are present in CM. Details can be found in below link.

 

https://archive.cloudera.com/cm6/6.0.0/generic/jar/cm_api/apidocs/index.html

 

Hue does not have direct API calls exposed, Hence, you will have to fetch these results from backend database or you can work with below CLI/API commands to see if that helps, but I do not see any other way.

 

http://cloudera.github.io/hue/latest/developer/api/

 

UPDATE :- Yes there are API call for Hue to extract users too. details are present under below link. 

 

https://docs.gethue.com/developer/api/rest/

 

API to be used 

 

#curl -X GET http://demo.gethue.com/api/iam/get_users

 

avatar
Community Manager

@Max1972 Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks!


Regards,

Diana Torres,
Community Moderator


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community: