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
}
User will be deactivated and new owners of rooms will be assigned
user-last-owner error appears
Indeed a new param was added to confirm the action by https://github.com/RocketChat/Rocket.Chat/pull/16088 but it was not ported to REST endpoints.
Hi, in our case best will be parameter which can indicate if deactivated user should be or should not removed as an owner. According to some our company policies users are deactivating and activating again. In old api version they not removed as an room owner and when activated again they still can manage their rooms.
Please consider it.
Most helpful comment
Hi, in our case best will be parameter which can indicate if deactivated user should be or should not removed as an owner. According to some our company policies users are deactivating and activating again. In old api version they not removed as an room owner and when activated again they still can manage their rooms.
Please consider it.