Skip to content

3.6.0 - Not possible to deactivate user from REST API #18710

@emikolajczak

Description

@emikolajczak

Description:

I have tested on newst develop branch. There is not possible to deactivate user which is owner of any room from REST API. When I try to do this an error apears:

  "details": {
    "shouldBeRemoved": [
      "tescik"
    ],
    "shouldChangeOwner": [
      "enc test 2",
      "aaa",
      "test-delete"
    ]
  },
  "error": "[user-last-owner]",
  "errorType": "user-last-owner",
  "success": false
}

Steps to reproduce:

  1. Try "Deactivate" user which is owner of any room from REST API call
  2. Described error appears

Expected behavior:

User will be deactivated and new owners of rooms will be assigned

Actual behavior:

user-last-owner error appears

Server Setup Information:

  • Version of Rocket.Chat Server: 3.6.0-rc.2
  • Operating System: Centos 7
  • Deployment Method: docker compose
  • Number of Running Instances: 9
  • DB Replicaset Oplog: YES
  • NodeJS Version: v12.16.1
  • MongoDB Version: 4.0.13

Client Setup Information

  • Desktop App or Browser Version: both
  • Operating System: Windows 10

Additional context

Relevant logs:

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions