Created 02-17-2022 05:53 AM
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
Created on 02-17-2022 10:53 AM - edited 02-17-2022 11:28 AM
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
Created 02-22-2022 02:26 PM
@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,