AnsweredAssumed Answered

[MUC] How can I grant membership to a rostergroup?

Question asked by aj2r on Aug 3, 2017
Latest reply on Aug 8, 2017 by CSH

I want to grant membership to a rostergroup from the client code like I can do it from the openfire admin console. I tried with this code:

 

MultiUserChatManager multiUserChatManager = MultiUserChatManager.getInstanceFor(connection);

MultiUserChat chatRoom = multiUserChatManager.getMultiUserChat(testGroup@conference.muc.test.org);

..............................

chatRoom.grantMembership(JidCreate.from("testGroup@muc.test.org"));

 

but the result in openfire is that the membership was granted to the (inexistent) user testGroup@muc.test.org, not to the group.

Is it possible to do what i'm trying to do?

 

Thanks

Outcomes