XMPP Instant Messaging - Group Rosters: Difference between revisions

No edit summary
(Adding Article Footer and Categories)
Line 1: Line 1:
As of ZCS 6.0, it's not possible to create group rosters (where the IM Buddy List is pre-populated with all the members of a group) through the admin web interface. This functionality is slated for ZCS 7.0. However, it is possible to do so via the IM SOAP API. The following bash script, which should be run from the CLI as the zimbra user, will reciprocally add all members of a Distribution List (defined in the admin web interface). It's not elegant, but it works.
As of ZCS 6.0, it's not possible to create group rosters (where the IM Buddy List is pre-populated with all the members of a group) through the admin web interface. This functionality is slated for ZCS 7.0. However, it is possible to do so via the IM SOAP API.  
 
The following bash script, which should be run from the CLI as the zimbra user, will reciprocally add all members of a Distribution List (defined in the admin web interface). It's not elegant, but it works.


<pre>
<pre>
Line 29: Line 31:
fi
fi
</pre>
</pre>
{{Article Footer|ZCS 6.0|1/15/1010}}
[[Category:Administration]]
[[Category:IM]]
[[Category:SOAP]]
[[Category:ZCS 6.0]]

Revision as of 18:44, 27 January 2010

As of ZCS 6.0, it's not possible to create group rosters (where the IM Buddy List is pre-populated with all the members of a group) through the admin web interface. This functionality is slated for ZCS 7.0. However, it is possible to do so via the IM SOAP API.

The following bash script, which should be run from the CLI as the zimbra user, will reciprocally add all members of a Distribution List (defined in the admin web interface). It's not elegant, but it works.

#!/bin/bash

if [ "$#" == "1" ]
then

    members=$(zmsoap --type admin --verbose --zadmin \
              GetDistributionListRequest/dl="$1" @by="name" | \
              grep dlm | sed -e 's/.*<dlm>\(.*\)<\/dlm>/\1/g')

    for member in $members
    do
        for target in $members
        do
            zmsoap --type im --verbose --zadmin \
            --mailbox $member IMSubscribeRequest \
            @addr=$target @op="add"

            zmsoap --type im --verbose --zadmin \
            --mailbox $target IMAuthorizeSubscribeRequest \
            @addr=$member @authorized="true"
        done
    done

else
    echo "$0 usage: $0 group@zimbra.domain.edu"
fi


Verified Against: ZCS 6.0 Date Created: 1/15/1010
Article ID: https://wiki.zimbra.com/index.php?title=XMPP_Instant_Messaging_-_Group_Rosters Date Modified: 2010-01-27



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search