Lock contacts in a group

How can I prevent contacts from one group to communicate with contact from another group?

You should disable the option “Allow contacts” for your IM network. This way users won’t be able to add other users to their contact lists. User contact lists will only be controlled by the administrator from the Web Control Panel.

Go to Web Control Panel – Settings – Options menu.