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: