09-07-2018 02:04 PM
I posted previously about how to delete a Hue user using curl or Python. What I needed was the exact URL to use along with the form data that should be used. I figured that part out. However, it appears that Hue uses the internal ID to delete users and the user name, which I believe is like the unique ID of the user, is all that is known. So, somehow, I need to take the user name and find it's corresponding internal ID.
I started down the path of loading the user list in the page after authentication and loading the DOM up with the data I needed. I drilled down the DOM and was able to get the internal ID on an older version of Hue.
So, in the old Hue, I could use this URL from Python:
and it would load the user list. I could proceed with drilling the DOM and find the internal ID for the user I want to delete.
However, in the new Hue, if I use this URL from Python:
Fortunately, I found that in the new version of Hue, I could call the first URL/URI and it would load the list of users. However, at the top of the window in the web browser, Hue popped up a notification indicating I was using an older version that looked like this:
This buys me some time but I would assume the developers of Hue will eventually depracate the "/useradmin/users/" option and therefore render my code useless.
BTW, I can't get access to the server so I need to do this through web browser calls.
09-10-2018 01:06 AM
09-10-2018 11:30 AM
So, can someone there make a note to not remove that old URL please!!!