When I want to get information about my users on my ejabberd server. Im querying this if I want all registered users on my server.
query xmlns='http://jabber.org/protocol/disco#items' node='all users'
Then I just listen for a response and receive a list with all my registered users.
But this only works when sent using an account who is an admin. Is it possible to edit the permissions so this request can be used by normal users?
I get this response when the user whos requesting is not an admin:
error code="403" type="auth
forbidden xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"