You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot delete user by command
root@thehive:# curl -XDELETE -H 'Authorization: Bearer pujTApbw+Ew2EcfyspYdmbwHo9Neakkh' http://127.0.0.1:9000/api/user/user1
{"type":"InternalError","message":"user can't be removed"}root@thehive:/opt#
application.log
2019-01-04 11:09:28,445 [INFO] from org.elastic4play.ErrorHandler in application-akka.actor.default-dispatcher-19 - DELETE /api/user/user1 returned 500
org.elastic4play.InternalError: user can't be removed
at org.elastic4play.models.BaseModelDef.removeAttribute(ModelDef.scala:62)
at org.elastic4play.services.DeleteSrv.apply(DeleteSrv.scala:26)
at org.elastic4play.services.DeleteSrv.$anonfun$apply$1(DeleteSrv.scala:22)
at scala.concurrent.Future.$anonfun$flatMap$1(Future.scala:303)
at scala.concurrent.impl.Promise.$anonfun$transformWith$1(Promise.scala:37)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60)
at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55)
at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:91)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:81)
at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:91)
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:40)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:44)
at akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
The text was updated successfully, but these errors were encountered:
Radi0now
changed the title
You signed in with another tab or window. Reload to refresh your session.
Delete user from Thehive: DELETE /api/user/user1 returned 500 org.elastic4play.InternalError: user can't be removed
Jan 4, 2019
well deleting users from TheHive means, marking them as Locked. We don't physically delete the data. As a workaround, you can PATCH the user and setting {"status": "Locked"}.
If you feel confident in deleting them from the DB, you can do it from ES directly.
well deleting users from TheHive means, marking them as Locked. We don't physically delete the data. As a workaround, you can PATCH the user and setting {"status": "Locked"}.
If you feel confident in deleting them from the DB, you can do it from ES directly.
Help me please! I'm new to Ubuntu.
Ubuntu 18.04
thehive-3.2.1-1
Cannot delete user by command
root@thehive:# curl -XDELETE -H 'Authorization: Bearer pujTApbw+Ew2EcfyspYdmbwHo9Neakkh' http://127.0.0.1:9000/api/user/user1
{"type":"InternalError","message":"user can't be removed"}root@thehive:/opt#
application.log
The text was updated successfully, but these errors were encountered: