Reply
New Contributor
Posts: 2
Registered: ‎03-20-2019

Delete Hue Superuser

[ Edited ]

is it possible to delete hue superuser account once it is created?

Please post the procedure for the same.

 

Thanks,

Debasish

Posts: 1,010
Topics: 1
Kudos: 253
Solutions: 127
Registered: ‎04-22-2014

Re: Delete Hue Superuser

@DebasishG,

 

Yes, you can

  • log in as the current superuser
  • create another user or update an existing one to be a 'superuser' for Hue
  • log in as the 'new' superuser and delete the previous superuser account.

I haven't tested, but that should work.

What is your goal in this excercise, though?  Are you seeking to remove all Hue superusers, or, are you just looking to delete the original superuser?

 

Regards,

 

Ben

New Contributor
Posts: 2
Registered: ‎03-20-2019

Re: Delete Hue Superuser

[ Edited ]

@bgooley 

 

Our current server /cluster will be given to some other team.

The objective is to remove all Hue super users. Is it possible to bring the Hue back to fresh installation state?

 

Thanks,

Debasish

Posts: 1,010
Topics: 1
Kudos: 253
Solutions: 127
Registered: ‎04-22-2014

Re: Delete Hue Superuser

@DebasishG,

 

I don't think you can achieve this directly via the UI or command line hue commands since a user cannot delete itself.

If you want a fresh Hue (containing no users, saved queries, etc.) , you can drop the database and recreate it.  That is only if you don't need any of the old Hue stuff.

 

If you need some guidance about how to do this, the following has instructions (you could follow the instructions only for Hue in this case)

https://www.cloudera.com/documentation/enterprise/latest/topics/cm_ig_installing_configuring_dbs.htm...

 

BASIC STEPS:

  1. Stop Hue
  2. Back up anything you need from the old Hue (if required)
  3. Drop db and recreate
  4. Update the password or other database information in the Hue configuration if needed.
  5. Start Hue

When Hue starts for the first time will create the necessary tables, schema, etc.

 

Not knowing the specifics of what you need from the old Hue to be saved, please proceed with caution and back up your Hue database you anticipate any need for the old data.

Highlighted
Cloudera Employee
Posts: 5
Registered: ‎11-08-2016

Re: Delete Hue Superuser

@Debasish1982 

 

If you just want to remove hue superusers, follow these steps:

  1.   log in as any existing or new superuser
  2.  click on the "Logged in User-->Manager Users" to land url: YourHue:8888/hue/useradmin/users
  3.  select all users you want to remove then click delete button.

You can check in hue's database, the useradmin_userprofile table will not have deleted users.

 

If you want to keep those users but revoke the superuser status, you can just select the user, click "Advanced" then uncheck the "Superuser status", click "Update User" button.

 

Hope this helps!

 

Weixia