Unfortunately, there is no standard for shared groups in XMPP. Therefore, you have to add users to shared groups in the Wildfire admin console. It’'s not possible to do so in Smack.
Oh, one thing to add. There’‘s a user creation plugin for Wildfire that lets you automatically add newly created users to a group. You might be able to use that to accomplish what you’'re trying to do.
Are you talking about the Registration plugin? In that all the new users are added into the default group. However, I would like to add them into already created 4-5 groups depending on the department they belong to. I guess I have to manually sort the users into different groups.
I was trying to find an answer to the same question you had, and I figured it out. I installed Spark, and while sniffing the stanzas as I added user “anoosh” to “test group”, I detected this:
Which means all you need to do is, after you’‘ve created the account using the Registration packet, send a Roster packet with this & you’'re all set.