- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to add LDAP users to Hue via API call
Created ‎06-06-2021 05:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
We have Hue (version 4.2.0) in our prod environment and it is coupled with our LDAP. We manually onboard new users by going to "Manage Users" -> "Add/Sync Manage Users". Here, we add the LDAP ID and later when the user gets added. Once the user is added, we again search the newly added LDAP user, click on that and go to "Profiles and Group". Here, we select "temporary-access" so that User can able to access the UI. Without Temporary-access selection, user will not be able to see the UI.
We want to get this automated by writing a Py program and we are looking for the right REST API for adding users to Hue and give him/her "temp-access" in profiles and group. The following link wasn't helpful - http://cloudera.github.io/hue/latest/developer/api/
Please assist us. I would highly appreciate any form of assistance or help.
Regards,
Shesh Kumar
Created ‎06-07-2021 02:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @sheshk11 I don’t think there is any REST API however Hue commands is another way by which you can achieve this.
- Configure LDAP via Hue Service
- Restart Hue Server.
- Login to Hue server and Perform synch ldap users via command line
<hue root>/build/env/bin/hue sync_ldap_users_and_groups
https://gethue.com/making-hadoop-accessible-to-your-employees-with-ldap/#t9
https://gethue.com/hadoop-tutorial-how-to-integrate-unix-users-and-groups/
Cheers!
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.
Created ‎06-07-2021 02:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @sheshk11 I don’t think there is any REST API however Hue commands is another way by which you can achieve this.
- Configure LDAP via Hue Service
- Restart Hue Server.
- Login to Hue server and Perform synch ldap users via command line
<hue root>/build/env/bin/hue sync_ldap_users_and_groups
https://gethue.com/making-hadoop-accessible-to-your-employees-with-ldap/#t9
https://gethue.com/hadoop-tutorial-how-to-integrate-unix-users-and-groups/
Cheers!
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.
Created ‎06-08-2021 10:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@GangWar Thank you!
Created ‎07-21-2021 01:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
when i enabled this feature, hue is able to import all users from the LDAP group however
sync_ldap_users_and_groups
is trying to create same user again and its failing with duplicate key error. see my question at
