Best practice to add any user to any room?

Matthew M
Added over 4 years ago

Is it possible to let the "admin" user of the Tigase to add any user to any room (in any domain)?

Basically we would like to have the admin to be able to "list" all the rooms (which I think it is not hard), but how to add a user to any room, even though this "admin" is not a member of those rooms?

In fact, it would be best to expose this add-user-to-room as a REST API, is there recommendation on how to achieve this, or is there any example we can follow? I found some REST API examples in

I wonder if this is right path to go? Will REST API support MUC operations and is there any examples? Many thanks!

Replies (1)

Added by Wojciech Kapcia TigaseTeam over 4 years ago

First of all - you are currently able to list all rooms available using service discovery.

If you are to create admin ad-hoc script (for example in groovy) then it should be possible to add new user to the room (without much changes to MUC Component itself - possibly by accessing PresenceModule and using it's methods).

And if you have any ad-hoc script then you can access it using REST API - in linked document you have example with @sess-man@, but this can be muc component just as well.