bahamas10 / hueadm

A command line management interface to Philips hue
206 stars 13 forks source link

Can't delete user #15

Open pzim-devdata opened 2 years ago

pzim-devdata commented 2 years ago

Hello, Thank you for your API. I'm trying to delete users and I have the following message :

hueadm -H 192.168.1.XXX -U XXXXXXXXXXXXXXXX-XCXXXXXXXXXXXXX delete-user xxxxxxxx-xxxxxxxx-xxxxx-xxxx-xxxxxxxx
-
    error: {type: 1, address: /config/whitelist, description: 'unauthorized user'}

error: Error: unauthorized user
    at /usr/local/lib/node_modules/hueadm/lib/common.js:339:29
    at Array.forEach (<anonymous>)
    at finish (/usr/local/lib/node_modules/hueadm/lib/common.js:332:20)
    at /usr/local/lib/node_modules/hueadm/node_modules/hue-sdk/lib/hue.js:40:5
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/hueadm/node_modules/hue-sdk/lib/request.js:24:7)
    at IncomingMessage.emit (events.js:326:22)
    at endReadableNT (_stream_readable.js:1241:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  type: 1,
  address: '/config/whitelist',
  _cmdlnInst: [CLI],
  _cmdlnSubcmd: 'delete-user',
  _cmdlnHandler: [Function]
}

I have tried this with two differents hue bridges and two differents users and I have always the same message.

Could you help me please ?

Thanks

pzim-devdata commented 2 years ago

I think it's because we can only delete hueadm users ? Can't we delete other users ?

inverse commented 1 year ago

Looks like that has to be done via https://account.meethue.com/