To retrieve list of node subscribers, node configuration option tigase#allow_view_subscribers must be set to true:
<iq type='set' from='hamlet@denmark.lit/elsinore' to='pubsub.shakespeare.lit' id='config2'> <pubsub xmlns='http://jabber.org/protocol/pubsub#owner'> <configure node='princely_musings'> <x xmlns='jabber:x:data' type='submit'> <field var='FORM_TYPE' type='hidden'> <value>http://jabber.org/protocol/pubsub#node_config</value> </field> <field var='tigase#allow_view_subscribers'><value>1</value></field> </x> </configure> </pubsub> </iq>
When option is enabled, each subscriber may get list of subscribers the same way as owner.
<iq type='get' from='hamlet@denmark.lit/elsinore' to='pubsub.shakespeare.lit' id='subman1'> <pubsub xmlns='http://jabber.org/protocol/pubsub#owner'> <subscriptions node='princely_musings'/> </pubsub> </iq>
There is extension to filter returned list:
<iq type='get' from='hamlet@denmark.lit/elsinore' to='pubsub.shakespeare.lit' id='subman1'> <pubsub xmlns='http://jabber.org/protocol/pubsub#owner'> <subscriptions node='princely_musings'> <filter xmlns='tigase:pubsub:1'> <jid contains='@denmark.lit' /> </filter> </subscriptions> </pubsub> </iq>
In this example will be returned all subscriptions of users from domain "denmark.lit".