'Add user to MUC instantly (ejabberd,xmpp)

Is it possible to add a user instatnly to the MUC? I created room, granted the new user membership and role but then the added user still doesn't exist in the room.

He appears in the users list only if he accepts an invitation / or joins to this room by his own.

Any ideas? Is it possible?

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source