Get a nickname for a MUC Room member

Is there a way to get all MUC Room aliases with an ejabberd server?

I'm trying to:

<iq from=' crone1@shakespeare.lit /desktop' id='member3' to=' coven@chat.shakespeare.lit ' type='get'> <query xmlns='http://jabber.org/protocol/muc#admin'> <item affiliation='member'/> </query> </iq> 

but I only get jid without aliases:

 <iq from=' coven@chat.shakespeare.lit ' id='member3' to=' crone1@shakespeare.lit /desktop' type='result'> <query xmlns='http://jabber.org/protocol/muc#admin'> <item affiliation='member' jid=' hag66@shakespeare.lit ' role='participant'/> </query> </iq> 
+4
source share
1 answer

On 6.5 Request for room elements from XEP 0045 when you send

 <iq from=' $user-name@ $user-server/$user-resorce' id='someid' to=' $chat-room-to-query@ $chatserver' type='get'> <query xmlns='http://jabber.org/protocol/disco#items'/> </iq> 

You have the following description

The MAY implementation returns a list of existing users if this information is publicly available , or does not return a list at all if this information remains confidential (primary focus)

if the room is public, you get

 <iq from=' $chat-room-to-query@ $chatserver' id='someid' to=' $user-name@ $user-server/$user-resorce' type='result'> <query xmlns='http://jabber.org/protocol/disco#items'> <item jid=' $chat-room-to-query@ $chatserver/$firstnick'/> <item jid=' $chat-room-to-query@ $chatserver/$secondnick'/> <...> </query> </iq> 

From my knowledge, ejabberd implements this correctly.

+1
source

Source: https://habr.com/ru/post/1486594/


All Articles