Rest Api Admin not able to delete Private Rooms of other users

Description

I have an application which uses rest api to communicate with the rocket chat self hosted client. I have a scenario like i have to delete some private room from my system as an administrator. When i tried to delete a private room that showing a message

"The required “roomId” or “roomName” param provided does not match any group [error-room-not-found] "

Admin user is not in that group. but admin have to delete the room from rest api.

But admin user can delete from admin account . but i need to automate the deletion of some private groups from my application . using rest api.

please help me,

Server Setup Information

  • Version of Rocket.Chat Server: 3.7.1
  • Operating System: ubuntu

Sounds similar to the issue I have: https://github.com/RocketChat/Rocket.Chat/issues/19658

I have worked around the issue by joining the room with “groups.invite” before taking any further actions on the room.

1 Like

I will try the solution like this.
But from admin i am not sure to add the admin user to the group.